FlexBasis Struct
Definition
Specifies the initial size of a flex item.
public struct FlexBasis
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| Parse | Converts a string flex-basis value to a Avalonia.Controls.FlexBasis instance. |
| ToString | No 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
ToString Method
public string ToString()
Returns
string
Properties
| Name | Description |
|---|---|
| Auto | 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. |
| IsAbsolute | Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to an absolute value. |
| IsAuto | Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to "auto". |
| IsRelative | Gets a value indicating whether the Avalonia.Controls.FlexBasis is set to a relative value. |
| Kind | Gets the Avalonia.Controls.FlexBasisKind. This determines how the value affects the size of the flex item |
| Value | Gets 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; }