SizeU
Stores an ordered pair of Unit-based numbers, typically the width and height of a rectangle.
Definition
Namespace:Telerik.Reporting.Drawing
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(SizeUConverter))]
public struct SizeU
Constructors
Initializes a new instance of the SizeU class from the specified existing Size in device-independent pixels.
public SizeU(Size sizeDips)
The Size from which to create the new SizeU.
Initializes a new instance of the SizeU class from the specified existing SizeF in device-independent pixels.
public SizeU(SizeF sizeDips)
The SizeF from which to create the new SizeU.
Fields
Properties
Gets or sets the vertical component of this SizeU.
public Unit Height { get; set; }
The vertical component of this SizeU.
Methods
Tests to see whether the specified object is a SizeU with the same dimensions as this SizeU.
public override bool Equals(object obj)
The object to test.
Returns:bool
This method returns true if obj is a SizeU and has the same width and height as this SizeU; otherwise, false.
Overrides:
Returns a hash code for this SizeU structure.
public override int GetHashCode()
int
An integer value that specifies a hash value for this SizeU structure.
Overrides:
Creates a human-readable string that represents this SizeU.
public override string ToString()
string
A string that represents this SizeU.
Overrides:
Creates a human-readable string that represents this SizeU.
public string ToString(CultureInfo culture)
A CultureInfo object according to which to format the string.
Returns:string
A string that represents this SizeU.
Operators
Subtracts the width and height of one SizeU structure from the width and height of another SizeU structure.
Tests whether two SizeU structures are different.
public static bool operator !=(SizeU size1, SizeU size2)
The SizeU structure on the left side of the equality operator.
size2SizeUThe SizeU structure on the right side of the equality operator.
Returns:bool
This operator returns true if size1 and size2 differ either in width or height; false if size1 and size2 are equal.
Adds the width and height of one SizeU structure to the width and height of another SizeU structure.
Tests whether two SizeU structures are equal.
public static bool operator ==(SizeU size1, SizeU size2)
The SizeU structure on the left side of the equality operator.
size2SizeUThe SizeU structure on the right side of the equality operator.
Returns:bool
This operator returns true if size1 and size2 have equal width and height; otherwise, false.