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

Thickness

Struct

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public struct Thickness : IEquatable<Thickness>

Implements: IEquatable<Thickness>

Inherited Members ValueType.ToString()

Constructors

C#
public Thickness(double left, double top, double right, double bottom)
Parameters:leftdoubletopdoublerightdoublebottomdouble

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

C#
public Thickness(double uniformLength)
Parameters:uniformLengthdouble

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

Properties

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

C#
public double Bottom { get; set; }
Property Value:

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.

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

C#
public double Left { get; set; }
Property Value:

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.

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

C#
public double Right { get; set; }
Property Value:

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.

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

C#
public double Top { get; set; }
Property Value:

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

Compares this Thickness structure to another object for equality.

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

The object to compare.

Returns:

bool

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

Overrides: ValueType.Equals(object)

Compares this Thickness structure to another Thickness structure for equality.

C#
public bool Equals(Thickness thickness)
Parameters:thicknessThickness

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)

Returns the hash code of the structure.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance of Thickness.

Overrides: ValueType.GetHashCode()

Operators

Compares two Thickness structures for inequality.

C#
public static bool operator !=(Thickness t1, Thickness t2)
Parameters:t1Thickness

The first structure to compare.

t2Thickness

The other structure to compare.

Returns:

bool

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

Compares the value of two Thickness structures for equality.

C#
public static bool operator ==(Thickness t1, Thickness t2)
Parameters:t1Thickness

The first structure to compare.

t2Thickness

The other structure to compare.

Returns:

bool

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

Extension Methods