Struct Thickness
Represents the thickness of an object.
Implements
System.IEquatable<Thickness>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GraphShape
Assembly: GraphShape.dll
Syntax
[Serializable]
public struct Thickness : IEquatable<Thickness>
Constructors
| Improve this Doc View SourceThickness(Double, Double, Double, Double)
Constructor.
Declaration
public Thickness(double left, double top, double right, double bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | Left bound value. |
System.Double | top | Top bound value. |
System.Double | right | Right bound value. |
System.Double | bottom | Bottom bound value. |
Fields
| Improve this Doc View SourceBottom
Bottom bound value.
Declaration
public readonly double Bottom
Field Value
Type | Description |
---|---|
System.Double |
Left
Left bound value.
Declaration
public readonly double Left
Field Value
Type | Description |
---|---|
System.Double |
Right
Right bound value.
Declaration
public readonly double Right
Field Value
Type | Description |
---|---|
System.Double |
Top
Top bound value.
Declaration
public readonly double Top
Field Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceEquals(Thickness)
Declaration
public bool Equals(Thickness other)
Parameters
Type | Name | Description |
---|---|---|
Thickness | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Operators
| Improve this Doc View SourceEquality(Thickness, Thickness)
Indicates whether both Thickness are equal.
Declaration
public static bool operator ==(Thickness thickness1, Thickness thickness2)
Parameters
Type | Name | Description |
---|---|---|
Thickness | thickness1 | First Thickness to compare. |
Thickness | thickness2 | Second Thickness to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Thickness are equal, otherwise false. |
Inequality(Thickness, Thickness)
Indicates whether both Thickness are not equal.
Declaration
public static bool operator !=(Thickness thickness1, Thickness thickness2)
Parameters
Type | Name | Description |
---|---|---|
Thickness | thickness1 | First Thickness to compare. |
Thickness | thickness2 | Second Thickness to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Thickness are equal, otherwise false. |
Implements
System.IEquatable<T>