GeometryGroup GeometryGroup GeometryGroup GeometryGroup 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// This API is not available in Javascript.
<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() GeometryGroup()

Initializes a new instance of the GeometryGroup class.

public : GeometryGroup()public GeometryGroup()Public Sub New()// This API is not available in Javascript.

Properties

Children 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// This API is not available in Javascript.
<GeometryGroup>
  oneOrMoreGeometries
</GeometryGroup>
Value
GeometryCollection GeometryCollection GeometryCollection GeometryCollection

A collection containing the children of this GeometryGroup.

ChildrenProperty 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// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Children dependency property.

FillRule 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// This API is not available in Javascript.
<GeometryGroup FillRule="EvenOdd"/>
-or-
<GeometryGroup FillRule="Nonzero"/>
Value
FillRule 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.

FillRuleProperty 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// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the FillRule dependency property.

See Also