[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.GeometryGroup

Class GeometryGroup

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1GeometryGroup

[Guid("2cd906a6-12e2-11dc-9fed-001143a055f9")]
public class GeometryGroup : Geometry, IDisposable, IUnknown
Inheritance
object
GeometryGroup
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GeometryGroup(IntPtr)

Initializes a new instance of the GeometryGroup class.

public GeometryGroup(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(Factory, FillMode, Geometry[])

Creates an GeometryGroup, which is an object that holds other geometries.

public static GeometryGroup Create(Factory factory, FillMode fillMode, Geometry[] geometries)

Parameters

factory Factory

an instance of Factory

fillMode FillMode

A value that specifies the rule that a composite shape uses to determine whether a given point is part of the geometry.

geometries Geometry[]

An array containing the geometry objects to add to the geometry group. The number of elements in this array is indicated by the geometriesCount parameter.

Returns

GeometryGroup

Remarks

Geometry groups are a convenient way to group several geometries simultaneously so all figures of several distinct geometries are concatenated into one. To create a GeometryGroup object, call the CreateGeometryGroup method on the Factory object, passing in the fillMode with possible values of Alternate (alternate) and D2D1_FILL_MODE_WINDING, an array of geometry objects to add to the geometry group, and the number of elements in this array.

GetFillMode()

D2D1_FILL_MODE ID2D1GeometryGroup::GetFillMode()

public FillMode GetFillMode()

Returns

FillMode

GetSourceGeometries(Geometry[], int)

void ID2D1GeometryGroup::GetSourceGeometries([Out, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount)

public void GetSourceGeometries(Geometry[] geometries, int geometriesCount)

Parameters

geometries Geometry[]
geometriesCount int

GetSourceGeometry()

Retrieves the geometries in the geometry group.

public Geometry[] GetSourceGeometry()

Returns

Geometry[]

an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter.

Remarks

The returned geometries are referenced and counted, and the caller must release them.

GetSourceGeometry(int)

Retrieves the geometries in the geometry group.

public Geometry[] GetSourceGeometry(int geometriesCount)

Parameters

geometriesCount int

A value indicating the number of geometries to return in the geometries array. If this value is less than the number of geometries in the geometry group, the remaining geometries are omitted. If this value is larger than the number of geometries in the geometry group, the extra geometries are set to NULL. To obtain the number of geometries currently in the geometry group, use the {{GetSourceGeometryCount}} method.

Returns

Geometry[]

an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter.

Remarks

The returned geometries are referenced and counted, and the caller must release them.

GetSourceGeometryCount()

unsigned int ID2D1GeometryGroup::GetSourceGeometryCount()

public int GetSourceGeometryCount()

Returns

int

Operators

explicit operator GeometryGroup(IntPtr)

Performs an explicit conversion from System.IntPtr to GeometryGroup.

public static explicit operator GeometryGroup(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

GeometryGroup