Class Geometry
Provides a base class for objects that define geometric shapes. Geometry objects can be used for clipping regions and as geometry definitions for rendering two-dimensional graphical data as a Path.
Inheritance
System.Object
Geometry
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public abstract class Geometry : DependencyObject
Fields
| Improve this Doc View SourceTransformProperty
Declaration
public static readonly DependencyProperty TransformProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBounds
Declaration
[NotImplemented]
public Rect Bounds { get; }
Property Value
Type | Description |
---|---|
Rect |
Empty
Gets an empty geometry object.
Declaration
public static Geometry Empty { get; }
Property Value
Type | Description |
---|---|
Geometry | The empty geometry object. |
Transform
Declaration
public Transform Transform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Methods
| Improve this Doc View SourceDefineInCanvas(Path, Object, Double, Double, Double, Double, Double, Double, Size)
Draws the Geometry on the canvas.
Declaration
protected abstract void DefineInCanvas(Path path, object canvasDomElement, double horizontalMultiplicator, double verticalMultiplicator, double xOffsetToApplyBeforeMultiplication, double yOffsetToApplyBeforeMultiplication, double xOffsetToApplyAfterMultiplication, double yOffsetToApplyAfterMultiplication, Size shapeActualSize)
Parameters
Type | Name | Description |
---|---|---|
Path | path | |
System.Object | canvasDomElement | |
System.Double | horizontalMultiplicator | |
System.Double | verticalMultiplicator | |
System.Double | xOffsetToApplyBeforeMultiplication | |
System.Double | yOffsetToApplyBeforeMultiplication | |
System.Double | xOffsetToApplyAfterMultiplication | |
System.Double | yOffsetToApplyAfterMultiplication | |
Size | shapeActualSize |
GetMinMaxXY(ref Double, ref Double, ref Double, ref Double)
Declaration
protected abstract void GetMinMaxXY(ref double minX, ref double maxX, ref double minY, ref double maxY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minX | |
System.Double | maxX | |
System.Double | minY | |
System.Double | maxY |