Struct
RadSize

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

Definition

Namespace:Telerik.Charting

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public struct RadSize

Inherited Members ValueType.ToString()

Constructors

RadSize(double, double)

Initializes a new instance of the RadSize struct.

Declaration

cs-api-definition
public RadSize(double width, double height)

Parameters

width

double

The width.

height

double

The height.

Fields

Empty

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

Declaration

cs-api-definition
public static readonly RadSize Empty

Field Value

RadSize

Height

The length along the vertical axis.

Declaration

cs-api-definition
public double Height

Field Value

double

Invalid

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

Declaration

cs-api-definition
public static readonly RadSize Invalid

Field Value

RadSize

Width

The length along the horizontal axis.

Declaration

cs-api-definition
public double Width

Field Value

double

Methods

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

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

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for this instance.

Declaration

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

operator !=(RadSize, RadSize)

Determines whether two RadSize structures are not equal.

Declaration

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

Parameters

size1

RadSize

size2

RadSize

Returns

bool

operator ==(RadSize, RadSize)

Determines whether two RadSize structures are equal.

Declaration

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

Parameters

size1

RadSize

size2

RadSize

Returns

bool