Table of Contents

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

size float

Thickness(float, float, float, float)

public Thickness(float left, float right, float top, float bottom)

Parameters

left float
right float
top float
bottom float

Fields

Bottom

public float Bottom

Field Value

float

Left

public float Left

Field Value

float

Right

public float Right

Field Value

float

Top

public float Top

Field Value

float

Methods

Equals(Thickness)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Thickness other)

Parameters

other Thickness

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left Thickness
right Thickness

Returns

bool

implicit operator Vector4(Thickness)

public static implicit operator Vector4(Thickness t)

Parameters

t Thickness

Returns

Vector4

operator !=(Thickness, Thickness)

public static bool operator !=(Thickness left, Thickness right)

Parameters

left Thickness
right Thickness

Returns

bool