[]
ID2D1GeometryGroup
[Guid("2cd906a6-12e2-11dc-9fed-001143a055f9")]
public class GeometryGroup : Geometry, IDisposable, IUnknown
Initializes a new instance of the GeometryGroup class.
public GeometryGroup(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates an GeometryGroup, which is an object that holds other geometries.
public static GeometryGroup Create(Factory factory, FillMode fillMode, Geometry[] geometries)
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.
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.
D2D1_FILL_MODE ID2D1GeometryGroup::GetFillMode()
public FillMode GetFillMode()
void ID2D1GeometryGroup::GetSourceGeometries([Out, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount)
public void GetSourceGeometries(Geometry[] geometries, int geometriesCount)
geometries
Geometry[]geometriesCount
intRetrieves the geometries in the geometry group.
public Geometry[] GetSourceGeometry()
an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter.
The returned geometries are referenced and counted, and the caller must release them.
Retrieves the geometries in the geometry group.
public Geometry[] GetSourceGeometry(int geometriesCount)
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.
an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter.
The returned geometries are referenced and counted, and the caller must release them.
unsigned int ID2D1GeometryGroup::GetSourceGeometryCount()
public int GetSourceGeometryCount()
Performs an explicit conversion from System.IntPtr to GeometryGroup.
public static explicit operator GeometryGroup(IntPtr nativePointer)
nativePointer
System.IntPtr