Geometry​Group Geometry​Group Geometry​Group Class

Definition

Represents a composite geometry, composed of other Geometry objects.

public : sealed class GeometryGroup : Geometry, IGeometryGrouppublic sealed class GeometryGroup : Geometry, IGeometryGroupPublic NotInheritable Class GeometryGroup Inherits Geometry Implements IGeometryGroup
<GeometryGroup>
  oneOrMoreGeometries
</GeometryGroup>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited methods

Examples

Composite geometry objects can be created using a GeometryGroup. The GeometryGroup object creates an amalgamation of the Geometry objects it contains without combining their area. Any number of Geometry objects can be added to a GeometryGroup. This example uses a GeometryGroup to create a composite geometry.

<Canvas>
    <Path Stroke="Black" StrokeThickness="4" Fill="#CCCCFF">
        <Path.Data>

            <!-- Creates a composite shape from three geometries. -->
            <GeometryGroup FillRule="EvenOdd">
                <LineGeometry StartPoint="10,10" EndPoint="50,30" />
                <EllipseGeometry Center="40,70" RadiusX="30" RadiusY="30" />
                <RectangleGeometry Rect="30,55 100 30" />
            </GeometryGroup>
        </Path.Data>
    </Path>
</Canvas>

Constructors

GeometryGroup() GeometryGroup() GeometryGroup()

Initializes a new instance of the GeometryGroup class.

public : GeometryGroup()public GeometryGroup()Public Sub New()
Attributes

Properties

Children Children Children

Gets or sets the GeometryCollection that contains the objects that define this GeometryGroup.

public : GeometryCollection Children { get; set; }public GeometryCollection Children { get; set; }Public ReadWrite Property Children As GeometryCollection
<GeometryGroup>
  oneOrMoreGeometries
</GeometryGroup>
Value
GeometryCollection GeometryCollection GeometryCollection

A collection containing the children of this GeometryGroup.

Attributes

ChildrenProperty ChildrenProperty ChildrenProperty

Identifies the Children dependency property.

public : static DependencyProperty ChildrenProperty { get; }public static DependencyProperty ChildrenProperty { get; }Public Static ReadOnly Property ChildrenProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Children dependency property.

Attributes

FillRule FillRule FillRule

Gets or sets how the intersecting areas of the objects contained in this GeometryGroup are combined.

public : FillRule FillRule { get; set; }public FillRule FillRule { get; set; }Public ReadWrite Property FillRule As FillRule
<GeometryGroup FillRule="EvenOdd"/>
-or-
<GeometryGroup FillRule="Nonzero"/>
Value
FillRule FillRule FillRule

One of the enumeration values that specifies how the intersecting areas are combined to form the resulting area. The default is EvenOdd.

Attributes

FillRuleProperty FillRuleProperty FillRuleProperty

Identifies the FillRule dependency property.

public : static DependencyProperty FillRuleProperty { get; }public static DependencyProperty FillRuleProperty { get; }Public Static ReadOnly Property FillRuleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the FillRule dependency property.

Attributes

See Also