int Value { get; set; }

robot_2Generated
code_blocksInput

Description

The Value property of the OrderAttribute class specifies the visual order of a member for user interface purposes. This integer value can be used to determine the sequence in which UI elements are displayed, allowing for a customizable and organized presentation.

Usage

To use the OrderAttribute and its Value property, apply the attribute to a class member, specifying the desired order as an integer. This order can then be utilized by UI frameworks or libraries, such as the DisplayInfo library, to arrange elements accordingly.

Example

// Example of using OrderAttribute to specify the order of properties in a UI
public class MyComponent : Component
{
    [Order(1)]
    public int FirstProperty { get; set; }

    [Order(2)]
    public int SecondProperty { get; set; }

    [Order(3)]
    public int ThirdProperty { get; set; }
}