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

Represents a structure that defines margins (or padding) of an element.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

C#
public struct RadThickness

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RadThickness struct.

C#
public RadThickness(double left, double top, double right, double bottom)
Parameters:leftdouble

The left.

topdouble

The top.

rightdouble

The right.

bottomdouble

The bottom.

Fields

Bottom length.

C#
public double Bottom

A RadThickness instance with Left, Top, Right, and Bottom components equal to 0.

C#
public static readonly RadThickness Empty

Left length.

C#
public double Left

Right length.

C#
public double Right

Top length.

C#
public double Top

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)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: ValueType.GetHashCode()

Operators

Determines whether two RadThickness structures are not equal.

C#
public static bool operator !=(RadThickness thickness1, RadThickness thickness2)
Parameters:thickness1RadThicknessthickness2RadThicknessReturns:

bool

Determines whether two RadThickness structures are equal.

C#
public static bool operator ==(RadThickness thickness1, RadThickness thickness2)
Parameters:thickness1RadThicknessthickness2RadThicknessReturns:

bool