CombinedGeometry Class
Definition
Represents a 2-D geometric shape defined by the combination of two Geometry objects.
public class CombinedGeometry
Constructors
| Name | Description |
|---|---|
| CombinedGeometry (4 overloads) | Initializes a new instance of the Avalonia.Media.CombinedGeometry class. |
CombinedGeometry overloads
CombinedGeometry Constructor
Initializes a new instance of the Avalonia.Media.CombinedGeometry class.
public CombinedGeometry()
CombinedGeometry Constructor
Initializes a new instance of the Avalonia.Media.CombinedGeometry class with the specified Avalonia.Media.Geometry objects.
public CombinedGeometry(Avalonia.Media.Geometry geometry1, Avalonia.Media.Geometry geometry2)
Parameters
geometry1 Avalonia.Media.Geometry
The first geometry to combine.
geometry2 Avalonia.Media.Geometry
The second geometry to combine.
CombinedGeometry Constructor
Initializes a new instance of the Avalonia.Media.CombinedGeometry class with the specified Avalonia.Media.Geometry objects and Avalonia.Media.CombinedGeometry.GeometryCombineMode.
public CombinedGeometry(Avalonia.Media.GeometryCombineMode combineMode, Avalonia.Media.Geometry geometry1, Avalonia.Media.Geometry geometry2)
Parameters
combineMode Avalonia.Media.GeometryCombineMode
The method by which geometry1 and geometry2 are combined.
geometry1 Avalonia.Media.Geometry
The first geometry to combine.
geometry2 Avalonia.Media.Geometry
The second geometry to combine.
CombinedGeometry Constructor
Initializes a new instance of the Avalonia.Media.CombinedGeometry class with the specified Avalonia.Media.Geometry objects, Avalonia.Media.CombinedGeometry.GeometryCombineMode and Avalonia.Media.Transform.
public CombinedGeometry(Avalonia.Media.GeometryCombineMode combineMode, Avalonia.Media.Geometry geometry1, Avalonia.Media.Geometry geometry2, Avalonia.Media.Transform transform)
Parameters
combineMode Avalonia.Media.GeometryCombineMode
The method by which geometry1 and geometry2 are combined.
geometry1 Avalonia.Media.Geometry
The first geometry to combine.
geometry2 Avalonia.Media.Geometry
The second geometry to combine.
transform Avalonia.Media.Transform
The transform applied to the geometry.
Methods
| Name | Description |
|---|---|
| Clone | No summary available. |
| Combine | Combines the two geometries using the specified Avalonia.Media.GeometryCombineMode and applies the specified transform to the resulting geometry. Inherited from Geometry. |
| FillContains | Indicates whether the geometry's fill contains the specified point. Inherited from Geometry. |
| GetRenderBounds | Gets the geometry's bounding rectangle with the specified pen. Inherited from Geometry. |
| GetWidenedGeometry | Gets a Avalonia.Media.Geometry that is the shape defined by the stroke on the Geometry produced by the specified Pen. Inherited from Geometry. |
| Parse | Creates a Avalonia.Media.Geometry from a string. Inherited from Geometry. |
| StrokeContains | Indicates whether the geometry's stroke contains the specified point. Inherited from Geometry. |
| TryGetPointAndTangentAtDistance | Inherited from Geometry. |
| TryGetPointAtDistance | Inherited from Geometry. |
| TryGetSegment | Inherited from Geometry. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Clone Method
public Avalonia.Media.Geometry Clone()
Returns
Properties
| Name | Description |
|---|---|
| Geometry1 | Gets or sets the first Avalonia.Media.Geometry object of this Avalonia.Media.CombinedGeometry object. |
| Geometry2 | Gets or sets the second Avalonia.Media.Geometry object of this Avalonia.Media.CombinedGeometry object. |
| GeometryCombineMode | Gets or sets the method by which the two geometries (specified by the Avalonia.Media.CombinedGeometry.Geometry1 and Avalonia.Media.CombinedGeometry.Geometry2 properties) are combined. The default value is Avalonia.Media.GeometryCombineMode.Union. |
| Bounds | Gets the geometry's bounding rectangle. Inherited from Geometry. |
| ContourLength | Gets the geometry's total length as if all its contours are placed in a straight line. Inherited from Geometry. |
| Transform | Gets or sets a transform to apply to the geometry. Inherited from Geometry. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
Geometry1 Property
Gets or sets the first Avalonia.Media.Geometry object of this Avalonia.Media.CombinedGeometry object.
public Avalonia.Media.Geometry Geometry1 { get; set; }
Geometry2 Property
Gets or sets the second Avalonia.Media.Geometry object of this Avalonia.Media.CombinedGeometry object.
public Avalonia.Media.Geometry Geometry2 { get; set; }
GeometryCombineMode Property
Gets or sets the method by which the two geometries (specified by the Avalonia.Media.CombinedGeometry.Geometry1 and Avalonia.Media.CombinedGeometry.Geometry2 properties) are combined. The default value is Avalonia.Media.GeometryCombineMode.Union.
public Avalonia.Media.GeometryCombineMode GeometryCombineMode { get; set; }
Fields
| Name | Description |
|---|---|
| Geometry1Property | Defines the Avalonia.Media.CombinedGeometry.Geometry1 property. |
| Geometry2Property | Defines the Avalonia.Media.CombinedGeometry.Geometry2 property. |
| GeometryCombineModeProperty | Defines the Avalonia.Media.CombinedGeometry.GeometryCombineMode property. |
| TransformProperty | Defines the Avalonia.Media.Geometry.Transform property. Inherited from Geometry. |
Geometry1Property Field
Defines the Avalonia.Media.CombinedGeometry.Geometry1 property.
public Avalonia.StyledProperty<TValue><Avalonia.Media.Geometry> Geometry1Property
Geometry2Property Field
Defines the Avalonia.Media.CombinedGeometry.Geometry2 property.
public Avalonia.StyledProperty<TValue><Avalonia.Media.Geometry> Geometry2Property
GeometryCombineModeProperty Field
Defines the Avalonia.Media.CombinedGeometry.GeometryCombineMode property.
public Avalonia.StyledProperty<TValue><Avalonia.Media.GeometryCombineMode> GeometryCombineModeProperty
Events
| Name | Description |
|---|---|
| Changed | Raised when the geometry changes. Inherited from Geometry. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |