Show / Hide Table of Contents

# Class RectCollection

##### Inheritance

object
RectCollection

##### Inherited Members

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

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public class RectCollection

### Constructors

#### RectCollection()

Constructor.

##### 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 |