Compartir a través de


Children (GeometryGroup)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the collection of child Geometry objects.

<GeometryGroup>
  oneOrMoreGeometries
</GeometryGroup>
value = object.Children
object.Children = value

XAML Values

Value

Description

oneOrMoreGeometries

One or more object elements that derive from Geometry. These can be one or more of the following: EllipseGeometry, GeometryGroup, LineGeometry, PathGeometry, RectangleGeometry.

Property Value

Type: GeometryCollection

The collection of child Geometry objects.

This property is read/write. The default value is an empty collection.

Managed Equivalent

Children

Remarks

The XAML syntax for Children is an example of an implicit collection syntax, where you can omit the GeometryCollection object element as well as the <GeometryGroup.Children> property element. Instead, you generally include one or more Geometry-type object elements (EllipseGeometry, GeometryGroup, LineGeometry, PathGeometry, or RectangleGeometry) as child elements of a GeometryGroup. Explicitly including a GeometryCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.

Applies To

GeometryGroup

See Also

Reference