StructSizeU
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
SizeU(Size)
Initializes a new instance of the SizeU class from the specified existing Size in device-independent pixels.
Declaration
public SizeU(Size sizeDips)
Parameters
sizeDips
Size
The Size from which to create the new SizeU.
SizeU(SizeF)
Initializes a new instance of the SizeU class from the specified existing SizeF in device-independent pixels.
Declaration
public SizeU(SizeF sizeDips)
Parameters
sizeDips
SizeF
The SizeF from which to create the new SizeU.
SizeU(Unit, Unit)
Initializes a new instance of the SizeU class from the specified dimensions.
Fields
Properties
Height
Gets or sets the vertical component of this SizeU.
Declaration
public Unit Height { get; set; }
Property Value
The vertical component of this SizeU.
Methods
Equals(object)
Tests to see whether the specified object is a SizeU with the same dimensions as this SizeU.
Declaration
public override bool Equals(object obj)
Parameters
obj
object
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
GetHashCode()
Returns a hash code for this SizeU structure.
Declaration
public override int GetHashCode()
Returns
int
An integer value that specifies a hash value for this SizeU structure.
Overrides
ToString()
Creates a human-readable string that represents this SizeU.
Declaration
public override string ToString()
Returns
string
A string that represents this SizeU.
Overrides
ToString(CultureInfo)
Creates a human-readable string that represents this SizeU.
Declaration
public string ToString(CultureInfo culture)
Parameters
culture
CultureInfo
A CultureInfo object according to which to format the string.
Returns
string
A string that represents this SizeU.
Operators
explicit operator Size(SizeU)
Converts the specified SizeU to a Size in device-dependent pixels.
explicit operator SizeF(SizeU)
Converts the specified SizeU to a
operator !=(SizeU, SizeU)
Tests whether two SizeU structures are different.
Declaration
public static bool operator !=(SizeU size1, SizeU size2)
Parameters
size1
The SizeU structure on the left side of the equality operator.
size2
The 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.
operator *(SizeU, double)
Multiplies a SizeU by a specified value.
operator +(SizeU, SizeU)
Adds the width and height of one SizeU structure to the width and height of another SizeU structure.
operator -(SizeU, SizeU)
Subtracts the width and height of one SizeU structure from the width and height of another SizeU structure.
operator /(SizeU, double)
Devides a SizeU by a specified value.
operator ==(SizeU, SizeU)
Tests whether two SizeU structures are equal.
Declaration
public static bool operator ==(SizeU size1, SizeU size2)
Parameters
size1
The SizeU structure on the left side of the equality operator.
size2
The 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.