Table of Contents

Class CombinedGeometry

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents a 2-D geometric shape defined by the combination of two Geometry objects.

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

Constructors

CombinedGeometry()

Initializes a new instance of the CombinedGeometry class.

public CombinedGeometry()

CombinedGeometry(Geometry, Geometry)

Initializes a new instance of the CombinedGeometry class with the specified Geometry objects.

public CombinedGeometry(Geometry geometry1, Geometry geometry2)

Parameters

geometry1 Geometry

The first geometry to combine.

geometry2 Geometry

The second geometry to combine.

CombinedGeometry(GeometryCombineMode, Geometry?, Geometry?)

Initializes a new instance of the CombinedGeometry class with the specified Geometry objects and GeometryCombineMode.

public CombinedGeometry(GeometryCombineMode combineMode, Geometry? geometry1, Geometry? geometry2)

Parameters

combineMode GeometryCombineMode

The method by which geometry1 and geometry2 are combined.

geometry1 Geometry

The first geometry to combine.

geometry2 Geometry

The second geometry to combine.

CombinedGeometry(GeometryCombineMode, Geometry?, Geometry?, Transform?)

Initializes a new instance of the CombinedGeometry class with the specified Geometry objects, GeometryCombineMode and Transform.

public CombinedGeometry(GeometryCombineMode combineMode, Geometry? geometry1, Geometry? geometry2, Transform? transform)

Parameters

combineMode GeometryCombineMode

The method by which geometry1 and geometry2 are combined.

geometry1 Geometry

The first geometry to combine.

geometry2 Geometry

The second geometry to combine.

transform Transform

The transform applied to the geometry.

Fields

Geometry1Property

Defines the Geometry1 property.

public static readonly StyledProperty<Geometry?> Geometry1Property

Field Value

StyledProperty<Geometry>

Geometry2Property

Defines the Geometry2 property.

public static readonly StyledProperty<Geometry?> Geometry2Property

Field Value

StyledProperty<Geometry>

GeometryCombineModeProperty

Defines the GeometryCombineMode property.

public static readonly StyledProperty<GeometryCombineMode> GeometryCombineModeProperty

Field Value

StyledProperty<GeometryCombineMode>

Properties

Geometry1

Gets or sets the first Geometry object of this CombinedGeometry object.

public Geometry? Geometry1 { get; set; }

Property Value

Geometry

Geometry2

Gets or sets the second Geometry object of this CombinedGeometry object.

public Geometry? Geometry2 { get; set; }

Property Value

Geometry

GeometryCombineMode

Gets or sets the method by which the two geometries (specified by the Geometry1 and Geometry2 properties) are combined. The default value is Union.

public GeometryCombineMode GeometryCombineMode { get; set; }

Property Value

GeometryCombineMode

Methods

Clone()

Clones the geometry.

public override Geometry Clone()

Returns

Geometry

A cloned geometry.