New to Telerik UI for WinForms? Start a free 30-day trial
Properties
Updated over 6 months ago
| Property | Description |
|---|---|
| AutoSize | Gets or sets whether the edit control is auto-sized |
| PlaceHolder | Gets or sets the character used as the placeholder in a masked editor |
| Mask | Gets or sets a mask expression |
| MaskType | Gets or sets the mask type |
| Value | Gets or sets the value associated to the mask edit box |
| TextMaskFormat | Gets or sets a value that determines whether literals and prompt characters are included in the formatted string |
| UseGenericBorderPaint | Gets or sets a value indicating whether to show the bottom part of characters, clipped due to font name or size particularities |
| TextAlign | Gets or sets the horizontal alignment of the text |
| ShortcutsEnabled | Gets or sets a value indicating whether the defined shortcuts are enabled |
| SelectionStart | Gets or sets the starting point of text selected in the text box |
| Modified | Gets or sets a value indicating whether the RadTextBox control has been modified by the user since the control was created or since its contents were last set |
| Multiline | Gets or sets a value indicating whether this is a multiline TextBox control |
| NullText | Gets or sets the text that is displayed when the ComboBox contains a null reference |
| PasswordChar | Gets or sets the character used to mask characters of a password in a single-line TextBox control |
| ReadOnly | Gets or sets a value indicating whether the contents of the TextBox control can be changed |
| ScrollBars | Gets or sets which scroll bars should appear in a multiline TextBox control |
| SelectedText | Gets or sets a value indicating the currently selected text in the control |
| SelectionLength | Gets or sets the number of characters selected in the text box |
| HideSelection | Gets or sets a value indicating whether the selected text remains highlighted even when the RadTextBox has lost the focus |
| Lines | Gets or sets the lines of text in multiline configurations |
| AcceptsReturn | Gets or sets a value indicating whether pressing ENTER in a multiline RadTextBox control creates a new line of text in the control or activates the default button for the form |
| AcceptsTab | Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order |
| CharacterCasing | Gets or sets a value indicating whether the RadTextBox control modifies the case of characters as they are typed |
| Culture | Gets or sets the current culture associated to the RadMasedkEditBox |
RadMaskedEditBoxElement's Properties
| Property | Description |
|---|---|
| EnableClickSelectionStart | Enables the SelectionStartMouseClick functionality. |
| SelectionStartOnMouseClick | The selection start will be moved to this position when EnableClickSelectionStart is enabled. |
| SelectionLengthOnMouseClick | The selection length will be set to this value when EnableClickSelectionStart is enabled. |
| ContextMenu | Represent the RadMaskedEditBox ContextMenu. |
| Provider | Represents the provider that handles the applied MaskType functionality. |
| AllowPromptAsInput | Indicates whether the prompt char is allowed as input. |
| ResultHint | This returns the result hint for the last assignment to the property. If the assigned text could not be properly formatted, this will contain a hint as to why not. Positive values indicate success. Negative values indicate failure. |
| HintPosition | This returns the result hint position for the last assignment to the property. |
| UnmaskedText | This read-only property returns the unmasked copy of the text. |
| PromptChar | This is used to set or get the prompt character for display in the label text. |
| IncludePrompt | Gets or sets whether or not prompt characters are displayed in the label text. |
| EnableNullValueInput | Gets or set a value indicating whether end users can set the value to NULL. This can be achieved by pressing Ctrl + Del or Ctrl + 0 key combinations. |
Methods
| Method | Description |
|---|---|
| Clear | Clears all text from the text box control and Value |
| ClearUndo | Clears information about the most recent operation from the undo buffer of the text box |
| SelectAll | selects the whole text |
Events
| Event | Description |
|---|---|
| ValueChanged | Occurs when the editing value has been changed |
| ValueChanging | Occurs when the editing value is changing |
| KeyDown | Occurs when the RadItem has focus and the user presses a key down |
| KeyPress | Occurs when the RadItem has focus and the user presses a key |
| KeyUp | Occurs when the RadItem has focus and the user releases the pressed key up |
| MultilineChanged | Occurs when the value of the Multiline property has changed |
| TextAlignChanged | Occurs when the value of the TextAlign property has changed |