Struct
Thickness

Definition

Namespace:Telerik.Fixed.Legacy

Assembly:Telerik.WinControls.PdfViewer.dll

Syntax:

cs-api-definition
public struct Thickness : IEquatable<Thickness>

Implements: IEquatable<Thickness>

Inherited Members ValueType.ToString()

Constructors

Thickness(double)

Initializes a new instance of the Thickness structure that has the specified uniform length on each side.

Declaration

cs-api-definition
public Thickness(double uniformLength)

Parameters

uniformLength

double

The uniform length applied to all four sides of the bounding rectangle.

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)

Compares this Thickness structure to another Thickness structure for equality.

Declaration

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

Parameters

thickness

Thickness

An instance of Thickness to compare for equality.

Returns

bool

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

Implements IEquatable<Thickness>.Equals(Thickness)

Equals(object)

Compares this Thickness structure to another object for equality.

Declaration

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

Parameters

obj

object

The object to compare.

Returns

bool

true if the two objects are equal; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Returns the hash code of the structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance of Thickness.

Overrides ValueType.GetHashCode()

Operators

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.