int Order

book_4_sparkGenerated
code_blocksInput

Description

The Order field in the DisplayInfo struct is an integer that specifies the order of this member for UI ordering purposes. This field is particularly useful when you need to control the sequence in which UI elements are displayed, ensuring a logical and user-friendly arrangement. The order is typically determined by the OrderAttribute, which can be applied to members to define their display order.

Usage

To use the Order field, you can set it to an integer value that represents the desired order of the UI element. Lower values typically indicate a higher priority or earlier position in the UI sequence.

Example

// Example of setting the Order field
DisplayInfo displayInfo = new DisplayInfo();
displayInfo.Order = 1; // Sets the order to 1, indicating high priority in UI display