New to Telerik UI for WinFormsStart a free 30-day trial

RadSize

Struct

Represents a structure that defines a size in the two-dimensional space.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

C#
public struct RadSize

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RadSize struct.

C#
public RadSize(double width, double height)
Parameters:widthdouble

The width dimension.

heightdouble

The height dimension.

Fields

A RadSize instance which Width and Height are set to 0.

C#
public static readonly RadSize Empty

The length along the vertical axis.

C#
public double Height

A RadSize instance which Width and Height are set to -1.

C#
public static readonly RadSize Invalid

The length along the horizontal axis.

C#
public double Width

Methods

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: ValueType.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: ValueType.GetHashCode()

Operators

Determines whether two RadSize structures are not equal.

C#
public static bool operator !=(RadSize size1, RadSize size2)
Parameters:size1RadSize

The first RadSize to compare.

size2RadSize

The second RadSize to compare.

Returns:

bool

True if the sizes are not equal; otherwise, false.

Determines whether two RadSize structures are equal.

C#
public static bool operator ==(RadSize size1, RadSize size2)
Parameters:size1RadSize

The first RadSize to compare.

size2RadSize

The second RadSize to compare.

Returns:

bool

True if the sizes are equal; otherwise, false.