Struct Size
Size structure defined by width and height.
Inherited Members
Namespace: Telerik.Documents.Primitives
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public struct Size
Constructors
Size(Double, Double)
Initializes a new instance of the Size structure.
Declaration
public Size(double width, double height)
Parameters
System.Double
width
The Width. Should be non-negative. |
System.Double
height
The Height. Should be non-negative. |
Properties
Empty
Gets an empty Size. It has negative-infinity Width and Height.
Declaration
public static Size Empty { get; }
Property Value
Size
|
Height
Gets or sets the height. Should be non-negative.
Declaration
public double Height { get; set; }
Property Value
System.Double
|
IsEmpty
Returns true if this size is the Empty size.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Width
Gets or sets the width. Should be non-negative.
Declaration
public double Width { get; set; }
Property Value
System.Double
|
Methods
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The object to compare with the current instance. |
Returns
System.Boolean
true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit signed integer that is the hash code for this instance. |
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
System.String
The fully qualified type name. |
Overrides
Operators
Equality(Size, Size)
Compares two Size instances for exact equality.
Declaration
public static bool operator ==(Size firstSize, Size secondSize)
Parameters
Size
firstSize
The first Size to compare. |
Size
secondSize
The second Size to compare. |
Returns
System.Boolean
True if the two Sizes are exactly equal; otherwise false. |
Inequality(Size, Size)
Compares two Size instances for exact inequality.
Declaration
public static bool operator !=(Size firstSize, Size secondSize)
Parameters
Size
firstSize
The first Size to compare. |
Size
secondSize
The second Size to compare. |
Returns
System.Boolean
True if the two Sizes are exactly unequal; otherwise false. |