Struct
SizeI

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:

cs-api-definition
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.

Declaration

cs-api-definition
public SizeI(int width, int height)

Parameters

width

int

The width.

height

int

The height.

Properties

Empty

Gets a special empty size instance used to indicate an uninitialized or invalid size.

Declaration

cs-api-definition
public static SizeI Empty { get; }

Property Value

SizeI

The empty size value.

Height

Gets or sets the vertical dimension in integer units, must be non-negative.

Declaration

cs-api-definition
public int Height { get; set; }

Property Value

int

The height.

IsEmpty

Gets whether this size represents an empty or uninitialized state.

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

The value indicating whether the size is empty.

Width

Gets or sets the horizontal dimension in integer units, must be non-negative.

Declaration

cs-api-definition
public int Width { get; set; }

Property Value

int

The width.

Methods

Equals(SizeI)

Determines whether the specified size has the same width and height as this instance.

Declaration

cs-api-definition
public bool Equals(SizeI value)

Parameters

value

SizeI

The other size.

Returns

bool

The value indicating whether the specified size is equal to this instance.

Equals(object)

Determines whether the specified object is a SizeI with the same width and height values.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Computes a hash code based on the width and height values for dictionary and hash table usage.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

ToString()

Returns a string representation of the size in "width,height" format or "Empty" for empty sizes.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides ValueType.ToString()

Operators

operator !=(SizeI, SizeI)

Determines whether two sizes have different width or height values.

Declaration

cs-api-definition
public static bool operator !=(SizeI size1, SizeI size2)

Parameters

size1

SizeI

The size1 value.

size2

SizeI

The size2 value.

Returns

bool

The result of the operator.

operator ==(SizeI, SizeI)

Determines whether two sizes have equal width and height values.

Declaration

cs-api-definition
public static bool operator ==(SizeI size1, SizeI size2)

Parameters

size1

SizeI

The size1 value.

size2

SizeI

The size2 value.

Returns

bool

The result of the operator.