Show / Hide Table of Contents

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 graphic data as a Path.

Inheritance
System.Object
DependencyObject
Geometry
EllipseGeometry
GeometryGroup
LineGeometry
PathGeometry
RectangleGeometry
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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, IDependencyObject

Fields

| Improve this Doc View Source

TransformProperty

Identifies the Transform dependency property.

Declaration
public static readonly DependencyProperty TransformProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Bounds

Gets a Rect that specifies the axis-aligned bounding box of the Geometry.

Declaration
[NotImplemented]
public Rect Bounds { get; }
Property Value
Type Description
Rect

The axis-aligned bounding box of the Geometry.

| Improve this Doc View Source

Empty

Gets an empty geometry object.

Declaration
public static Geometry Empty { get; }
Property Value
Type Description
Geometry

The empty geometry object.

| Improve this Doc View Source

StandardFlatteningTolerance

Gets the standard tolerance used for polygonal approximation.

Declaration
[NotImplemented]
public static double StandardFlatteningTolerance { get; }
Property Value
Type Description
System.Double

The standard tolerance. The default value is 0.25.

| Improve this Doc View Source

Transform

Gets or sets the Transform object applied to a Geometry.

Declaration
public Transform Transform { get; set; }
Property Value
Type Description
Transform

The transformation applied to the Geometry. Note that this value may be a single Transform or a TransformCollection cast as a Transform.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source