RadRect
Represents a Rectangle in the Euclidean plane geometry.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.dll
Syntax:
public struct RadRect
Inherited Members
Constructors
Fields
Invalid rectangle, which Width and Height properties are set to (-1).
public static readonly RadRect Invalid
Properties
Gets the Y-coordinate of the bottom side of the rectangle.
public double Bottom { get; }
Gets the location (Top-Left corner) of the rectangle.
public RadPoint Location { get; }
Methods
Determines if this RadRect instance contains the point that is described by the arguments.
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Determines whether the size of this rect is valid - that is both Width and Height should be bigger than zero.
Rounds the rectangle's values by respecting the X and Right and respecting the Y and Bottom. (0.4, 0, 2.2, 0) results in (0, 0, 3, 0). Note: original width = 3, result width = 2.2; original right = 2.6, result right = 3. (0.4, 0, 2.0, 0) results in (0, 0, 2, 0). (0.6, 0, 1.8, 0) results in (1, 0, 1, 0). Note: original width = 1.8, result width = 1; original right = 2.4, result right = 2. (0.6, 0, 2.0, 0) results in (1, 0, 2, 0).