Struct LayoutLength

Namespace
Forma
Assembly
Forma.dll
public readonly struct LayoutLength : IEquatable<LayoutLength>
Implements
Inherited Members

Properties

Auto

public static LayoutLength Auto { get; }

Property Value

LayoutLength

Content

public static LayoutLength Content { get; }

Property Value

LayoutLength

Unit

public LayoutLengthUnit Unit { get; }

Property Value

LayoutLengthUnit

Value

public float Value { get; }

Property Value

float

Methods

Equals(LayoutLength)

public bool Equals(LayoutLength other)

Parameters

other LayoutLength

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Percent(float)

public static LayoutLength Percent(float value)

Parameters

value float

Returns

LayoutLength

Pixels(float)

public static LayoutLength Pixels(float value)

Parameters

value float

Returns

LayoutLength

Resolve(float, float)

public float Resolve(float available, float content)

Parameters

available float
content float

Returns

float

Star(float)

public static LayoutLength Star(float value = 1)

Parameters

value float

Returns

LayoutLength

Operators

operator ==(LayoutLength, LayoutLength)

public static bool operator ==(LayoutLength left, LayoutLength right)

Parameters

left LayoutLength
right LayoutLength

Returns

bool

operator !=(LayoutLength, LayoutLength)

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

Parameters

left LayoutLength
right LayoutLength

Returns

bool