Struct
Thickness

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ThicknessConverter))]
public struct Thickness : IEquatable<Thickness>

Implements: IEquatable<Thickness>

Constructors

Thickness(double)

Declaration

cs-api-definition
public Thickness(double uniformWidth)

Parameters

uniformWidth

double

Thickness(double, double, double, double)

Declaration

cs-api-definition
public Thickness(double left, double top, double right, double bottom)

Parameters

left

double

top

double

right

double

bottom

double

Properties

Bottom

Gets or sets the width, in pixels, of the lower side of the bounding rectangle.

Declaration

cs-api-definition
public double Bottom { get; set; }

Property Value

double

A double that represents the width, in pixels, of the lower side of the bounding rectangle for this instance of Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Left

Gets or sets the width, in pixels, of the left side of the bounding rectangle.

Declaration

cs-api-definition
public double Left { get; set; }

Property Value

double

A double that represents the width, in pixels, of the left side of the bounding rectangle for this instance of Thickness. a pixel is equal to 1/96 on an inch. The default is 0.

Right

Gets or sets the width, in pixels, of the right side of the bounding rectangle.

Declaration

cs-api-definition
public double Right { get; set; }

Property Value

double

A double that represents the width, in pixels, of the right side of the bounding rectangle for this instance of Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Top

Gets or sets the width, in pixels, of the upper side of the bounding rectangle.

Declaration

cs-api-definition
public double Top { get; set; }

Property Value

double

A double that represents the width, in pixels, of the upper side of the bounding rectangle for this instance of Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Methods

Equals(Thickness)

Declaration

cs-api-definition
public bool Equals(Thickness thickness)

Parameters

thickness

Thickness

Returns

bool

Implements IEquatable<Thickness>.Equals(Thickness)

Equals(object)

Declaration

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

Parameters

obj

object

Returns

bool

Overrides ValueType.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides ValueType.GetHashCode()

ToString()

Returns the string representation of the Thickness structure.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the Thickness value.

Overrides ValueType.ToString()

Operators

implicit operator Padding(Thickness)

Declaration

cs-api-definition
public static implicit operator Padding(Thickness me)

Parameters

me

Thickness

Returns

Padding

implicit operator Thickness(Padding)

Declaration

cs-api-definition
public static implicit operator Thickness(Padding me)

Parameters

me

Padding

Returns

Thickness

operator !=(Thickness, Thickness)

Compares two Thickness structures for inequality.

Declaration

cs-api-definition
public static bool operator !=(Thickness t1, Thickness t2)

Parameters

t1

Thickness

The first structure to compare.

t2

Thickness

The other structure to compare.

Returns

bool

true if the two instances of Thickness are not equal; otherwise, false.

operator ==(Thickness, Thickness)

Compares the value of two Thickness structures for equality.

Declaration

cs-api-definition
public static bool operator ==(Thickness t1, Thickness t2)

Parameters

t1

Thickness

The first structure to compare.

t2

Thickness

The other structure to compare.

Returns

bool

true if the two instances of Thickness are equal; otherwise, false.