Table of Contents

Class GeometryGroup

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents a composite geometry, composed of other Geometry objects.

public class GeometryGroup : Geometry, INotifyPropertyChanged
Inheritance
GeometryGroup
Implements
Inherited Members
Extension Methods

Constructors

GeometryGroup()

public GeometryGroup()

Fields

ChildrenProperty

public static readonly DirectProperty<GeometryGroup, GeometryCollection> ChildrenProperty

Field Value

DirectProperty<GeometryGroup, GeometryCollection>

FillRuleProperty

public static readonly StyledProperty<FillRule> FillRuleProperty

Field Value

StyledProperty<FillRule>

Properties

Children

Gets or sets the collection that contains the child geometries.

[Content]
public GeometryCollection Children { get; set; }

Property Value

GeometryCollection

FillRule

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

public FillRule FillRule { get; set; }

Property Value

FillRule

Methods

Clone()

Clones the geometry.

public override Geometry Clone()

Returns

Geometry

A cloned geometry.

OnChildrenChanged(GeometryCollection, GeometryCollection)

protected void OnChildrenChanged(GeometryCollection oldChildren, GeometryCollection newChildren)

Parameters

oldChildren GeometryCollection
newChildren GeometryCollection

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.