GeometryGroup
GeometryGroup
GeometryGroup
GeometryGroup
Class
Definition
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
-
GeometryGroupGeometryGroupGeometryGroupGeometryGroup
- Attributes
| 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>
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.
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"/>
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.
The identifier for the FillRule dependency property.