OpenTAP 9.27
API Reference
|
Defines how a property, class, enum, or other item is presented to the user. Also configures the description and allows items to be grouped and ordered. More...
Public Member Functions | |
string | GetFullName () |
Gets the Group (or Groups) and Name concatenated with a backslash (). | |
DisplayAttribute (string Name, string Description=null, string Group=null, double Order=DefaultOrder, bool Collapsed=false, string[] Groups=null) | |
Creates a new instance of DisplayAttribute. Ensures that Name is never null. More... | |
override bool | Equals (object obj) |
Overriding Equals to fix strange equality issues between instances of DisplayAttribute. | |
override int | GetHashCode () |
Generates a hash code based on the display attribute values. | |
Properties | |
string | Description [get] |
Optional text that provides a description of the item. Consider using HelpLinkAttribute if a link to documentation is needed. | |
string[] | Group [get] |
Optional text used to group displayed items. Use 'Groups' if more than one level of grouping is needed. | |
string | Name [get] |
Name displayed by the UI. | |
double | Order [get] |
Optional integer that ranks items and groups in ascending order relative to other items/groups. Default is -10000. For a group, the order is the average order of the elements inside the group. Any double value is allowed. Items with same order are ranked alphabetically. More... | |
bool | Collapsed [get] |
Boolean setting that indicates whether a group's default appearance is collapsed. Default is 'false' (group is expanded). | |
Properties inherited from OpenTap.IDisplayAnnotation | |
string | Description [get] |
Optional text that provides a description of the item. | |
string[] | Group [get] |
Optional text used to group displayed items. | |
string | Name [get] |
Name displayed by the UI. | |
double | Order [get] |
Optional integer that ranks items and groups in ascending order relative to other items/groups. Default is -10000. For a group, the order is the average order of the elements inside the group. Any double value is allowed. Items with same order are ranked alphabetically. | |
bool | Collapsed [get] |
Boolean setting that indicates whether a group's default appearance is collapsed. | |
Defines how a property, class, enum, or other item is presented to the user. Also configures the description and allows items to be grouped and ordered.
|
inline |
Creates a new instance of DisplayAttribute. Ensures that Name is never null.
Name | Name displayed by the UI. |
Description | Optional text that provides a description of the item. Consider using HelpLinkAttribute if a link to documentation is needed. |
Group | Optional text used to group displayed items. Use 'Groups' if more than one level of grouping is needed. |
Order | Optional integer that ranks items and groups in ascending order relative to other items/groups. Default is defined by DisplayAttribute.DefaultOrder. For a group, the order is the average order of the elements inside the group. Any double value is allowed. Items with same order are ranked alphabetically. |
Collapsed | Boolean setting that indicates whether a group's default appearance is collapsed. Default is 'false' (group is expanded). |
Groups | Optional array of text strings to specify multiple levels of grouping. Use 'Group' if only one level of grouping is needed. |
|
get |
Optional integer that ranks items and groups in ascending order relative to other items/groups. Default is -10000. For a group, the order is the average order of the elements inside the group. Any double value is allowed. Items with same order are ranked alphabetically.
This applies only to properties. Classes will ignore this setting and be ordered alphabetically.
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:45