Show / Hide Table of Contents

Class RectangleGeometry

Implements Rectangle geometry (fill and stroke)

Inheritance
System.Object
DependencyObject
Freezable
Geometry
RectangleGeometry
Inherited Members
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class RectangleGeometry : Geometry

Constructors

RectangleGeometry()

Initializes a new instance of the RectangleGeometry class.

Declaration
public RectangleGeometry()

RectangleGeometry(Rect)

Initializes a new instance of the RectangleGeometry class.

Declaration
public RectangleGeometry(Rect rect)
Parameters
Type Name Description
EmptyKeys.UserInterface.Rect rect

The rect.

RectangleGeometry(Rect, Single, Single)

Initializes a new instance of the RectangleGeometry class.

Declaration
public RectangleGeometry(Rect rect, float radiusX, float radiusY)
Parameters
Type Name Description
EmptyKeys.UserInterface.Rect rect

The rect.

System.Single radiusX

The radius x.

System.Single radiusY

The radius y.

Fields

RadiusXProperty

The radius x property

Declaration
public static readonly DependencyProperty RadiusXProperty
Field Value
Type Description
DependencyProperty

RadiusYProperty

The radius y property

Declaration
public static readonly DependencyProperty RadiusYProperty
Field Value
Type Description
DependencyProperty

RectProperty

The rect property

Declaration
public static readonly DependencyProperty RectProperty
Field Value
Type Description
DependencyProperty

Properties

Bounds

Gets the bounds.

Declaration
public override Rect Bounds { get; }
Property Value
Type Description
EmptyKeys.UserInterface.Rect

The bounds.

Overrides
Geometry.Bounds

RadiusX

Gets or sets the radius x.

Declaration
public float RadiusX { get; set; }
Property Value
Type Description
System.Single

The radius x.

RadiusY

Gets or sets the radius y.

Declaration
public float RadiusY { get; set; }
Property Value
Type Description
System.Single

The radius y.

Rect

Gets or sets the rect.

Declaration
public Rect Rect { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Rect

The rect.

Methods

Contains(PointF)

Determines whether [contains] [the specified local point].

Declaration
public override bool Contains(PointF localPoint)
Parameters
Type Name Description
EmptyKeys.UserInterface.PointF localPoint

The local point.

Returns
Type Description
System.Boolean
Overrides
Geometry.Contains(PointF)

GetFillGeometryData(Single, out GeometryPrimitiveType)

Gets the geometry data.

Declaration
public override List<PointF> GetFillGeometryData(float strokeThickness, out GeometryPrimitiveType primitiveType)
Parameters
Type Name Description
System.Single strokeThickness

The stroke thickness.

EmptyKeys.UserInterface.Media.GeometryPrimitiveType primitiveType
Returns
Type Description
System.Collections.Generic.List<EmptyKeys.UserInterface.PointF>
Overrides
Geometry.GetFillGeometryData(Single, out GeometryPrimitiveType)

GetStrokeGeometryData(Single, out GeometryPrimitiveType)

Gets the stroke geometry data.

Declaration
public override List<PointF> GetStrokeGeometryData(float thickness, out GeometryPrimitiveType primitiveType)
Parameters
Type Name Description
System.Single thickness

The thickness.

EmptyKeys.UserInterface.Media.GeometryPrimitiveType primitiveType
Returns
Type Description
System.Collections.Generic.List<EmptyKeys.UserInterface.PointF>
Overrides
Geometry.GetStrokeGeometryData(Single, out GeometryPrimitiveType)

IsEmpty()

Determines whether this instance is empty.

Declaration
public override bool IsEmpty()
Returns
Type Description
System.Boolean
Overrides
Geometry.IsEmpty()

MayHaveCurves()

Mays the have curves, like rounded corners etc.

Declaration
public override bool MayHaveCurves()
Returns
Type Description
System.Boolean
Overrides
Geometry.MayHaveCurves()
Back to top Generated by DocFX