Class GeometryGroup
[Guid("2cd906a6-12e2-11dc-9fed-001143a055f9")]
public class GeometryGroup : Geometry
- Inheritance
-
GeometryGroup
- Inherited Members
Constructors
GeometryGroup(Factory, FillMode, Geometry[])
Creates an GeometryGroup, which is an object that holds other geometries.
public GeometryGroup(Factory factory, FillMode fillMode, Geometry[] geometries)
Parameters
factory
Factoryan instance of Factory
fillMode
FillModeA 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.
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.
GeometryGroup(nint)
public GeometryGroup(nint nativePtr)
Parameters
nativePtr
nint
Properties
FillMode
Indicates how the intersecting areas of the geometries contained in this geometry group are combined.
public FillMode FillMode { get; }
Property Value
SourceGeometryCount
Indicates the number of geometry objects in the geometry group.
public int SourceGeometryCount { get; }
Property Value
Methods
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
intA 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.
Operators
explicit operator GeometryGroup(nint)
public static explicit operator GeometryGroup(nint nativePtr)
Parameters
nativePtr
nint