EditStyle Property
Description
Gets/sets the edit style(s) applied to the item.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property EditStyle() As [PropertyItemEditStyle](XtremePropertyGrid~Enumerations~PropertyItemEditStyle_EN.md)
Remarks
The table below lists the available edit styles that can be applied to property grid items.
| Edit Style | Value | Description |
|---|---|---|
| AUTOHSCROLL | 128 | Automatically scrolls text to the right by 10 characters when the user types a character at the end of the line. When the user presses the ENTER key, the control scrolls all text back to the zero position. |
| AUTOVSCROLL | 64 | Scrolls text up one page when the user presses the ENTER key on the last line. |
| CENTER | 1 | Centers text in a multiline edit control. |
| LEFT | 0 | Left-aligns text. |
| LOWERCASE | 16 | Converts all characters to lowercase as they are typed into the edit control. |
| MULTILINE | 4 | Designates a multiline edit control. The default is a single-line edit control. |
| NUMBER | 8192 | Accepts only digits to be typed into the edit control. |
| PASSWORD | 32 | Displays an asterisk (*) for each character that is typed into the edit control. |
| RIGHT | 2 | Right-aligns text in a multiline edit control. |
| UPPERCASE | 8 | Converts all characters to uppercase as they are typed into the edit control. |
To apply more than one edit style, the binary equivalent of each value must be combined with a bit-wise OR operation before it is set to the EditStyle property.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.