StructSizeI
Represents a two-dimensional size with integer width and height values for worksheet elements.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public struct SizeI
Constructors
SizeI(int, int)
Initializes a new instance of the SizeI class with specified width and height, both must be non-negative.
Properties
Empty
Gets a special empty size instance used to indicate an uninitialized or invalid size.
Declaration
public static SizeI Empty { get; }
Property Value
The empty size value.
Height
Gets or sets the vertical dimension in integer units, must be non-negative.
IsEmpty
Gets whether this size represents an empty or uninitialized state.
Declaration
public bool IsEmpty { get; }
Property Value
The value indicating whether the size is empty.
Methods
Equals(SizeI)
Determines whether the specified size has the same width and height as this instance.
Equals(object)
Determines whether the specified object is a SizeI with the same width and height values.
GetHashCode()
Computes a hash code based on the width and height values for dictionary and hash table usage.
ToString()
Returns a string representation of the size in "width,height" format or "Empty" for empty sizes.
Operators
operator !=(SizeI, SizeI)
Determines whether two sizes have different width or height values.
operator ==(SizeI, SizeI)
Determines whether two sizes have equal width and height values.