Click or drag to resize
Cimbalino ToolkitRect Structure
Describes the width, height, and point origin of a rectangle.

Namespace: Cimbalino.Toolkit.Foundation
Assembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax
C#
public struct Rect

The Rect type exposes the following members.

Constructors
  NameDescription
Public methodRect(Point, Point)
Initializes a new instance of the Rect structure that is exactly large enough to contain the two specified points.
Public methodRect(Point, Size)
Initializes a new instance of the Rect structure that has the specified top-left corner location and the specified width and height.
Public methodRect(Double, Double, Double, Double)
Initializes a new instance of the Rect structure that has the specified x-coordinate, y-coordinate, width, and height.
Top
Properties
  NameDescription
Public propertyBottom
Gets the y-axis value of the bottom of the rectangle.
Public propertyBottomLeft
Gets the position of the bottom-left corner of the rectangle.
Public propertyBottomRight
Gets the position of the bottom-right corner of the rectangle.
Public propertyStatic memberEmpty
Gets a special value that represents a rectangle with no position or area.
Public propertyHeight
Gets or sets the height of the rectangle.
Public propertyIsEmpty
Gets a value indicating whether the rectangle is the Empty rectangle.
Public propertyLeft
Gets the x-axis value of the left side of the rectangle.
Public propertyRight
Gets the x-axis value of the right side of the rectangle.
Public propertySize
Gets the width and height of the rectangle.
Public propertyTop
Gets the y-axis position of the top of the rectangle.
Public propertyTopLeft
Gets the position of the top-left corner of the rectangle.
Public propertyTopRight
Gets the position of the top-right corner of the rectangle.
Public propertyWidth
Gets or sets the width of the rectangle.
Public propertyX
Gets or sets the x-axis value of the left side of the rectangle.
Public propertyY
Gets or sets the y-axis value of the top side of the rectangle.
Top
Methods
  NameDescription
Public methodContains(Point)
Indicates whether the rectangle contains the specified point.
Public methodContains(Double, Double)
Indicates whether the rectangle contains the specified x-coordinate and y-coordinate.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddEventHandler
Adds an event handler to an event source.
(Defined by ObjectExtensions.)
Public Extension MethodGetPropertyValue(String)Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.)
Public Extension MethodGetPropertyValueTObject(String)Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.)
Public Extension MethodInvokeMethod(String, Object)Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters.
(Defined by ObjectExtensions.)
Public Extension MethodInvokeMethodTObject(String, Object)Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters, returning the result.
(Defined by ObjectExtensions.)
Public Extension MethodRemoveEventHandler
Removes an event handler from an event source.
(Defined by ObjectExtensions.)
Public Extension MethodSetPropertyValueTObject
Searches for the public property with the specified name and sets its value.
(Defined by ObjectExtensions.)
Top
Version Information

Portable

Supported in: 4.5

Windows

Supported in: 10.0, 8.1

Windows Phone

Supported in: 8.1

Windows Phone Silverlight

Supported in: 8.1, 8.0
See Also