Struct Thickness
- Namespace
- HelixToolkit.SharpDX.Model.Scene2D
- Assembly
- HelixToolkit.SharpDX.dll
public struct Thickness : IEquatable<Thickness>
- Implements
- Inherited Members
- Extension Methods
Constructors
Thickness(float)
public Thickness(float size)
Parameters
sizefloat
Thickness(float, float, float, float)
public Thickness(float left, float right, float top, float bottom)
Parameters
Fields
Bottom
public float Bottom
Field Value
Left
public float Left
Field Value
Right
public float Right
Field Value
Top
public float Top
Field Value
Methods
Equals(Thickness)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Thickness other)
Parameters
otherThicknessAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(Thickness, Thickness)
public static bool operator ==(Thickness left, Thickness right)
Parameters
Returns
implicit operator Vector4(Thickness)
public static implicit operator Vector4(Thickness t)
Parameters
Returns
operator !=(Thickness, Thickness)
public static bool operator !=(Thickness left, Thickness right)