DisplayOptionsAttribute
The DisplayOptionsAttribute controls the way an editor is presented. It provides the following properties:
- Header (string): Sets the label of the respective editor.
- HeaderResourceKey(string): Sets the key which will be used for globalizing the control´s property headers. The key should be present in a custom RESX file in your application.
- Group (string): Sets the group which the editor is part of.
- GroupResourceKey(string): Sets the key which will be used for globalizing the control´s group headers. The key should be present in a custom RESX file in your application.
- Position (int): Sets the position of the editor in the layout.
- ColumnPosition (int): Sets the column position of the editor in the layout.
- ColumnSpan (int): Sets the column span of the editor in the layout.
- PlaceholderText (string): Sets the empty content of the editor.
- PlaceholderResourceKey(string): Sets the key which will be used for globalizing the placeholder texts of the different properties. The key should be present in a custom RESX file in your application.
All properties are optional.
Example
Here is the decoration of the source class:
And here is the data form setup: