StreamGeometry Class
Definition
Represents the geometry of an arbitrarily complex shape.
public class StreamGeometry
Constructors
| Name | Description |
|---|---|
| StreamGeometry | Initializes a new instance of the Avalonia.Media.StreamGeometry class. |
StreamGeometry Constructor
Initializes a new instance of the Avalonia.Media.StreamGeometry class.
public StreamGeometry()
Methods
| Name | Description |
|---|---|
| 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. |
| Clone | Clones the geometry. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Combine | Combines the two geometries using the specified Avalonia.Media.GeometryCombineMode and applies the specified transform to the resulting geometry. Inherited from Geometry. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| FillContains | Indicates whether the geometry's fill contains the specified point. Inherited from Geometry. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetFillIntersectionResult | Returns a value that describes the intersection between the current geometry and the specified geometry Inherited from Geometry. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetRenderBounds | Gets the geometry's bounding rectangle with the specified pen. Inherited from Geometry. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| 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. |
| 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. |
| Open | Opens the geometry to start defining it. |
| Parse | Creates a Avalonia.Media.StreamGeometry from a string. |
| 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. |
| 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. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Clone Method
Clones the geometry.
public Avalonia.Media.Geometry Clone()
Returns
A cloned geometry.
Open Method
Opens the geometry to start defining it.
public Avalonia.Media.StreamGeometryContext Open()
Returns
Avalonia.Media.StreamGeometryContext
A Avalonia.Media.StreamGeometryContext which can be used to define the geometry.
Remarks
The new figures are added to the existing ones. The geometry is updated when the context is disposed.
Parse Method
Creates a Avalonia.Media.StreamGeometry from a string.
public Avalonia.Media.StreamGeometry Parse(string s)
Parameters
s string
The string.
Returns
Properties
| Name | Description |
|---|---|
| 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. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
| Transform | Gets or sets a transform to apply to the geometry. Inherited from Geometry. |
Fields
| Name | Description |
|---|---|
| TransformProperty | Defines the Avalonia.Media.Geometry.Transform property. Inherited from Geometry. |
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. |