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

Thickness

Struct

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
[TypeConverter(typeof(ThicknessConverter))]
public struct Thickness : IEquatable<Thickness>

Implements: IEquatable<Thickness>

Constructors

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

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

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

bool

Overrides: ValueType.Equals(object)

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

bool

Implements: IEquatable<Thickness>.Equals(Thickness)

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

Returns the string representation of the Thickness structure.

C#
public override string ToString()
Returns:

string

A string that represents the Thickness value.

Overrides: ValueType.ToString()

Operators

C#
public static implicit operator Padding(Thickness me)
Parameters:meThicknessReturns:

Padding

C#
public static implicit operator Thickness(Padding me)
Parameters:mePaddingReturns:

Thickness

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