int Value { get; set; }

book_4_sparkGenerated
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, such as a property or method, to specify its display order. The Value property is an integer that determines the order, with lower numbers appearing before higher numbers.

Example

// Example of using OrderAttribute to specify display order
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; }
}