Struct Thickness
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public struct Thickness : IEquatable<Thickness>
Constructors
Thickness(Double)
Initializes a new instance of the System.Windows.Thickness structure that has the specified uniform length on each side.
Declaration
public Thickness(double uniformLength)
Parameters
|
System.Double
uniformLength
The uniform length applied to all four sides of the bounding rectangle. |
Thickness(Double, Double, Double, Double)
Declaration
public Thickness(double left, double top, double right, double bottom)
Parameters
|
System.Double
left
|
|
System.Double
top
|
|
System.Double
right
|
|
System.Double
bottom
|
Properties
Bottom
Gets or sets the width, in pixels, of the lower side of the bounding rectangle.
Declaration
public double Bottom { get; set; }
Property Value
|
System.Double
A System.Double that represents the width, in pixels, of the lower side of the bounding rectangle for this instance of System.Windows.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
public double Left { get; set; }
Property Value
|
System.Double
A System.Double that represents the width, in pixels, of the left side of the bounding rectangle for this instance of System.Windows.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
public double Right { get; set; }
Property Value
|
System.Double
A System.Double that represents the width, in pixels, of the right side of the bounding rectangle for this instance of System.Windows.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
public double Top { get; set; }
Property Value
|
System.Double
A System.Double that represents the width, in pixels, of the upper side of the bounding rectangle for this instance of System.Windows.Thickness. A pixel is equal to 1/96 of an inch. The default is 0. |
Methods
Equals(Object)
Compares this System.Windows.Thickness structure to another System.Object for equality.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The object to compare. |
Returns
|
System.Boolean
true if the two objects are equal; otherwise, false. |
Overrides
Equals(Thickness)
Compares this System.Windows.Thickness structure to another System.Windows.Thickness structure for equality.
Declaration
public bool Equals(Thickness thickness)
Parameters
|
Thickness
thickness
An instance of System.Windows.Thickness to compare for equality. |
Returns
|
System.Boolean
true if the two instances of System.Windows.Thickness are equal; otherwise, false. |
Implements
GetHashCode()
Returns the hash code of the structure.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code for this instance of System.Windows.Thickness. |
Overrides
Operators
Equality(Thickness, Thickness)
Compares the value of two System.Windows.Thickness structures for equality.
Declaration
public static bool operator ==(Thickness t1, Thickness t2)
Parameters
|
Thickness
t1
The first structure to compare. |
|
Thickness
t2
The other structure to compare. |
Returns
|
System.Boolean
true if the two instances of System.Windows.Thickness are equal; otherwise, false. |
Inequality(Thickness, Thickness)
Compares two System.Windows.Thickness structures for inequality.
Declaration
public static bool operator !=(Thickness t1, Thickness t2)
Parameters
|
Thickness
t1
The first structure to compare. |
|
Thickness
t2
The other structure to compare. |
Returns
|
System.Boolean
true if the two instances of System.Windows.Thickness are not equal; otherwise, false. |