Skip to main content

FlexBasis Struct

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Specifies the initial size of a flex item.

public struct FlexBasis

Inheritance: ValueType -> FlexBasis

Implements: IEquatable<FlexBasis>

Constructors​

NameDescription
FlexBasis (2 overloads)Initializes an instance of Avalonia.Controls.FlexBasis and sets the absolute value

FlexBasis overloads​

FlexBasis Constructor​

Initializes an instance of Avalonia.Controls.FlexBasis and sets the absolute value

public FlexBasis(double value)
Parameters​

value double

The absolute value of the Avalonia.Controls.FlexBasis

Exceptions​

FlexBasis Constructor​

Initializes an instance of Avalonia.Controls.FlexBasis and sets the value and Avalonia.Controls.FlexBasisKind

public FlexBasis(double value, Avalonia.Controls.FlexBasisKind kind)
Parameters​

value double

The value of the Avalonia.Controls.FlexBasis

kind Avalonia.Controls.FlexBasisKind

The . This determines how the value affects the size of the flex item/>

Exceptions​

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ParseConverts a string flex-basis value to a Avalonia.Controls.FlexBasis instance.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Controls.FlexBasis other)
Parameters​

other Avalonia.Controls.FlexBasis

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

Parse Method​

Converts a string flex-basis value to a Avalonia.Controls.FlexBasis instance.

public Avalonia.Controls.FlexBasis Parse(string str)

Parameters​

str string

The value to parse.

Returns​

Avalonia.Controls.FlexBasis

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
AutoGets a Avalonia.Controls.FlexBasis instance that represents the "auto" value, which means the size of the flex item is determined by its content or other factors.
IsAbsoluteGets a value indicating whether the Avalonia.Controls.FlexBasis is set to an absolute value.
IsAutoGets a value indicating whether the Avalonia.Controls.FlexBasis is set to "auto".
IsRelativeGets a value indicating whether the Avalonia.Controls.FlexBasis is set to a relative value.
KindGets the Avalonia.Controls.FlexBasisKind. This determines how the value affects the size of the flex item
ValueGets the value of the Avalonia.Controls.FlexBasis. The meaning of this value depends on the Avalonia.Controls.FlexBasisKind

Auto Property​

Gets a Avalonia.Controls.FlexBasis instance that represents the "auto" value, which means the size of the flex item is determined by its content or other factors.

public Avalonia.Controls.FlexBasis Auto { get; set; }

IsAbsolute Property​

Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to an absolute value.

public bool IsAbsolute { get; set; }

IsAuto Property​

Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to "auto".

public bool IsAuto { get; set; }

IsRelative Property​

Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to a relative value.

public bool IsRelative { get; set; }

Kind Property​

Gets the Avalonia.Controls.FlexBasisKind. This determines how the value affects the size of the flex item

public Avalonia.Controls.FlexBasisKind Kind { get; set; }

Value Property​

Gets the value of the Avalonia.Controls.FlexBasis. The meaning of this value depends on the Avalonia.Controls.FlexBasisKind

public double Value { get; set; }