Struct RSize
Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
Inherited Members
Namespace: TheArtOfDev.HtmlRenderer.Adapters.Entities
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public struct RSize
Constructors
RSize(Double, Double)
Initializes a new instance of the RSize structure from the specified dimensions.
Declaration
public RSize(double width, double height)
Parameters
System.Double
width
The width component of the new RSize structure. |
System.Double
height
The height component of the new RSize structure. |
RSize(RPoint)
Declaration
public RSize(RPoint pt)
Parameters
RPoint
pt
The RPoint structure from which to initialize this RSize structure. |
RSize(RSize)
Declaration
public RSize(RSize size)
Parameters
RSize
size
The RSize structure from which to create the new RSize structure. |
Fields
Empty
Properties
Height
Gets or sets the vertical component of this RSize structure.
Declaration
public double Height { get; set; }
Property Value
System.Double
The vertical component of this RSize structure, typically measured in pixels. |
IsEmpty
Gets a value that indicates whether this RSize structure has zero width and height.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
This property returns true when this RSize structure has both a width and height of zero; otherwise, false. |
Width
Gets or sets the horizontal component of this RSize structure.
Declaration
public double Width { get; set; }
Property Value
System.Double
The horizontal component of this RSize structure, typically measured in pixels. |
Methods
Add(RSize, RSize)
Adds the width and height of one RSize structure to the width and height of another RSize structure.
Declaration
public static RSize Add(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The first RSize structure to add. |
RSize
sz2
The second RSize structure to add. |
Returns
RSize
A RSize structure that is the result of the addition operation. |
Equals(Object)
Tests to see whether the specified object is a RSize structure with the same dimensions as this RSize structure.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to test. |
Returns
System.Boolean
This method returns true if |
Overrides
GetHashCode()
Returns a hash code for this RSize structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
An integer value that specifies a hash value for this RSize structure. |
Overrides
Subtract(RSize, RSize)
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
Declaration
public static RSize Subtract(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The RSize structure on the left side of the subtraction operator. |
RSize
sz2
The RSize structure on the right side of the subtraction operator. |
Returns
RSize
A RSize structure that is a result of the subtraction operation. |
ToPointF()
ToString()
Creates a human-readable string that represents this RSize structure.
Declaration
public override string ToString()
Returns
System.String
A string that represents this RSize structure. |
Overrides
Operators
Addition(RSize, RSize)
Adds the width and height of one RSize structure to the width and height of another RSize structure.
Declaration
public static RSize operator +(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The first RSize structure to add. |
RSize
sz2
The second RSize structure to add. |
Returns
RSize
A RSize structure that is the result of the addition operation. |
Equality(RSize, RSize)
Tests whether two RSize structures are equal.
Declaration
public static bool operator ==(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The RSize structure on the left side of the equality operator. |
RSize
sz2
The RSize structure on the right of the equality operator. |
Returns
System.Boolean
This operator returns true if |
Explicit(RSize to RPoint)
Declaration
public static explicit operator RPoint(RSize size)
Parameters
RSize
size
The RSize structure to be converted |
Returns
RPoint
The RPoint structure to which this operator converts. |
Inequality(RSize, RSize)
Tests whether two RSize structures are different.
Declaration
public static bool operator !=(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The RSize structure on the left of the inequality operator. |
RSize
sz2
The RSize structure on the right of the inequality operator. |
Returns
System.Boolean
This operator returns true if |
Subtraction(RSize, RSize)
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
Declaration
public static RSize operator -(RSize sz1, RSize sz2)
Parameters
RSize
sz1
The RSize structure on the left side of the subtraction operator. |
RSize
sz2
The RSize structure on the right side of the subtraction operator. |
Returns
RSize
A RSize that is the result of the subtraction operation. |