Show / Hide Table of Contents

# Class RectCollection

##### Inheritance

object
RectCollection

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class RectCollection

### Constructors

#### RectCollection()

##### Declaration

    public RectCollection()

### Methods

#### AddRect(double, double, double, double)

##### Declaration

    public void AddRect(double x1, double y1, double x2, double y2)

##### Parameters

Type | Name | Description
--- | --- | ---
double | x1 |
double | y1 |
double | x2 |
double | y2 |

#### AddRect(Rect)

##### Declaration

    public void AddRect(Rect to_add)

##### Parameters

Type | Name | Description
--- | --- | ---
Rect | to_add |

#### Clear()

##### Declaration

    public void Clear()

#### GetNumRects()

##### Declaration

    public int GetNumRects()

##### Returns

Type | Description
--- | ---
int |

#### GetRectAt(int)

##### Declaration

    public Rect GetRectAt(int index)

##### Parameters

Type | Name | Description
--- | --- | ---
int | index |

##### Returns

Type | Description
--- | ---
Rect |