Class CombinedGeometry
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
GeometryThe first geometry to combine.
geometry2
GeometryThe 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
GeometryCombineModeThe method by which geometry1 and geometry2 are combined.
geometry1
GeometryThe first geometry to combine.
geometry2
GeometryThe 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
GeometryCombineModeThe method by which geometry1 and geometry2 are combined.
geometry1
GeometryThe first geometry to combine.
geometry2
GeometryThe second geometry to combine.
transform
TransformThe transform applied to the geometry.
Fields
Geometry1Property
Defines the Geometry1 property.
public static readonly StyledProperty<Geometry?> Geometry1Property
Field Value
Geometry2Property
Defines the Geometry2 property.
public static readonly StyledProperty<Geometry?> Geometry2Property
Field Value
GeometryCombineModeProperty
Defines the GeometryCombineMode property.
public static readonly StyledProperty<GeometryCombineMode> GeometryCombineModeProperty
Field Value
Properties
Geometry1
Gets or sets the first Geometry object of this CombinedGeometry object.
public Geometry? Geometry1 { get; set; }
Property Value
Geometry2
Gets or sets the second Geometry object of this CombinedGeometry object.
public Geometry? Geometry2 { get; set; }
Property Value
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
Methods
Clone()
Clones the geometry.
public override Geometry Clone()
Returns
- Geometry
A cloned geometry.