Show / Hide Table of Contents

# Class GeometryCollection

A Preprocessed PDF geometry collection

##### Inheritance

object
GeometryCollection

##### Implements

IDisposable

##### 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 GeometryCollection : IDisposable

### Constructors

#### GeometryCollection(IntPtr)

##### Declaration

    public GeometryCollection(IntPtr impl_ptr)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl_ptr |

### Methods

#### CreateInternal(IntPtr)

##### Declaration

    public static GeometryCollection CreateInternal(IntPtr imp)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | imp |

##### Returns

Type | Description
--- | ---
GeometryCollection |

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### ~GeometryCollection()

##### Declaration

    protected ~GeometryCollection()

#### SnapToNearest(double, double, int)

return the point within the collection which is closest to the queried point. All values are in the page coordinate space.

##### Declaration

    public Point SnapToNearest(double x, double y, int mode)

##### Parameters

Type | Name | Description
--- | --- | ---
double | x | the x coordinate to snap, in page coordinates
double | y | the y coordinate to snap, in page coordinates
int | mode | a combination of flags from the SnappingMode enumeration

##### Returns

Type | Description
--- | ---
Point | a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged

#### SnapToNearestPixel(double, double, double, int)

return the point within the collection which is closest to the queried point. All values are in the page coordinate space.

##### Declaration

    public Point SnapToNearestPixel(double x, double y, double dpi, int mode)

##### Parameters

Type | Name | Description
--- | --- | ---
double | x | the x coordinate to snap
double | y | the y coordinate to snap
double | dpi | the resolution of the rendered page, in pixels per inch
int | mode | a combination of flags from the SnappingMode enumeration

##### Returns

Type | Description
--- | ---
Point | a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged

### Implements

IDisposable