Class
RadMaskedEditBox

Uses a mask to distinguish between proper and improper user input

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Editors")]
[DefaultBindingProperty("Text")]
public class RadMaskedEditBox : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadMaskedEditBox

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISupportRootUIAutomationISynchronizeInvokeIWin32Window

Inherited Members RadEditorControl.OnParentChanged(EventArgs)RadEditorControl.GetPreferredSize(Size)RadEditorControl.GetRootElementDesiredSize(int, int, int, int)RadEditorControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.EnterControl.GotFocusControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadMaskedEditBox()

Initializes a new instance of the RadMaskedEditBox class.

Declaration

cs-api-definition
public RadMaskedEditBox()

Properties

AcceptsReturn

Gets or sets a value indicating whether pressing ENTER in a multiline control creates a new line of text in the control or activates the default button for the form.

Declaration

cs-api-definition
public bool AcceptsReturn { get; set; }

Property Value

bool

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.

Declaration

cs-api-definition
public bool AcceptsTab { get; set; }

Property Value

bool

AllowPromptAsInput

Gets or sets a value indicating whether the prompt character can be entered as input.

Declaration

cs-api-definition
public bool AllowPromptAsInput { get; set; }

Property Value

bool

AutoCompleteCustomSource

Gets or sets a custom AutoCompleteStringCollection to use when the AutoCompleteSource property is set to CustomSource.

Declaration

cs-api-definition
[Browsable(true)]
public AutoCompleteStringCollection AutoCompleteCustomSource { get; set; }

Property Value

AutoCompleteStringCollection

AutoCompleteMode

Gets or sets an option that controls how automatic completion works for the TextBox.

Declaration

cs-api-definition
[Browsable(true)]
public AutoCompleteMode AutoCompleteMode { get; set; }

Property Value

AutoCompleteMode

AutoCompleteSource

Gets or sets a value specifying the source of complete strings used for automatic completion.

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(TextBoxAutoCompleteSourceConverter))]
public AutoCompleteSource AutoCompleteSource { get; set; }

Property Value

AutoCompleteSource

AutoSize

Gets or sets whether the edit control is auto-sized

Declaration

cs-api-definition
[Browsable(true)]
public override bool AutoSize { get; set; }

Property Value

bool

Overrides RadControl.AutoSize

CharacterCasing

Gets or sets a value indicating whether the control modifies the case of characters as they are typed.

Declaration

cs-api-definition
public CharacterCasing CharacterCasing { get; set; }

Property Value

CharacterCasing

Culture

Gets or sets the culture that determines the value of the localizable separators and placeholders in the input mask.

Declaration

cs-api-definition
public CultureInfo Culture { get; set; }

Property Value

CultureInfo

DefaultSize

Gets the default size for the control.

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

EnableNullValueInput

Gets or sets 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.

Declaration

cs-api-definition
public virtual bool EnableNullValueInput { get; set; }

Property Value

bool

EnableUIAutomation

Gets or sets a value indicating whether the UI Automation functionality is enabled or disabled for this control.

Declaration

cs-api-definition
public override bool EnableUIAutomation { get; set; }

Property Value

bool

Overrides RadControl.EnableUIAutomation

Implements ISupportRootUIAutomation.EnableUIAutomation

HideSelection

Gets or sets a value indicating whether the selected text remains highlighted even when the control has lost the focus.

Declaration

cs-api-definition
public bool HideSelection { get; set; }

Property Value

bool

Lines

Gets or sets the lines of text in multiline configurations.

Declaration

cs-api-definition
public string[] Lines { get; set; }

Property Value

string[]

Mask

Gets or sets a mask expression.

Declaration

cs-api-definition
public string Mask { get; set; }

Property Value

string

MaskType

Gets or sets the mask type.

Declaration

cs-api-definition
public MaskType MaskType { get; set; }

Property Value

MaskType

MaskedEditBoxElement

Gets or sets the RadMaskedEditBoxElement that represents the element hierarchy.

Declaration

cs-api-definition
[Browsable(false)]
public virtual RadMaskedEditBoxElement MaskedEditBoxElement { get; set; }

Property Value

RadMaskedEditBoxElement

Modified

Gets or sets a value indicating whether the RadMaskedEditBox control has been modified by the user since the control was created or since its contents were last set.

Declaration

cs-api-definition
public bool Modified { get; set; }

Property Value

bool

Multiline

Gets or sets a value indicating whether this is a multiline TextBox control.

Declaration

cs-api-definition
public bool Multiline { get; set; }

Property Value

bool

Name

Gets or sets the name of the control, which is used by the hosted control.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

NullText

Gets or sets the text that is displayed when the control contains a null reference.

Declaration

cs-api-definition
public string NullText { get; set; }

Property Value

string

PasswordChar

Gets or sets the character used to mask characters of a password in a single-line TextBox control.

Declaration

cs-api-definition
public char PasswordChar { get; set; }

Property Value

char

PromptChar

Gets or sets the character used to represent the absence of user input in the mask.

Declaration

cs-api-definition
public char PromptChar { get; set; }

Property Value

char

ReadOnly

Gets or sets a value indicating whether the contents of the TextBox control can be changed.

Declaration

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

ScrollBars

Gets or sets which scroll bars should appear in a multiline TextBox control.

Declaration

cs-api-definition
public ScrollBars ScrollBars { get; set; }

Property Value

ScrollBars

SelectedText

Gets or sets a value indicating the currently selected text in the control.

Declaration

cs-api-definition
public string SelectedText { get; set; }

Property Value

string

SelectionLength

Gets or sets the number of characters selected in the text box.

Declaration

cs-api-definition
public int SelectionLength { get; set; }

Property Value

int

SelectionStart

Gets or sets the starting point of text selected in the text box.

Declaration

cs-api-definition
public int SelectionStart { get; set; }

Property Value

int

ShortcutsEnabled

Gets or sets a value indicating whether the defined shortcuts are enabled.

Declaration

cs-api-definition
public bool ShortcutsEnabled { get; set; }

Property Value

bool

Text

Gets or sets the text associated with this control.

Declaration

cs-api-definition
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }

Property Value

string

Overrides RadControl.Text

TextAlign

Gets or sets the horizontal alignment of the text.

Declaration

cs-api-definition
[Browsable(true)]
public HorizontalAlignment TextAlign { get; set; }

Property Value

HorizontalAlignment

TextMaskFormat

Gets or sets a value that determines whether literals and prompt characters are included in the formatted string.

Declaration

cs-api-definition
[Browsable(true)]
public MaskFormat TextMaskFormat { get; set; }

Property Value

MaskFormat

UseGenericBorderPaint

Gets or sets a value indicating whether to show the bottom part of characters, clipped due to font name or size particularities.

Declaration

cs-api-definition
public bool UseGenericBorderPaint { get; set; }

Property Value

bool

Value

Gets or sets the value associated to the mask edit box

Declaration

cs-api-definition
[Browsable(true)]
[Bindable(true)]
public object Value { get; set; }

Property Value

object

Methods

Clear()

Clears all text from the text box control and Value.

Declaration

cs-api-definition
public void Clear()

ClearUndo()

Clears information about the most recent operation from the undo buffer of the text box.

Declaration

cs-api-definition
public void ClearUndo()

CreateAccessibilityInstance()

Creates the accessibility instance for the control.

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

A new instance of the accessibility object for this control.

Overrides Control.CreateAccessibilityInstance()

CreateChildItems(RadElement)

Creates the child items in the element hierarchy.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element to which child items will be added.

Overrides RadControl.CreateChildItems(RadElement)

CreateElement()

Creates the RadMaskedEditBoxElement that represents the core functionality of the control.

Declaration

cs-api-definition
protected virtual RadMaskedEditBoxElement CreateElement()

Returns

RadMaskedEditBoxElement

A new instance of RadMaskedEditBoxElement.

Dispose(bool)

Releases the unmanaged resources used by the RadMaskedEditBox and optionally releases the managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides RadControl.Dispose(bool)

Focus()

Sets input focus to the control.

Declaration

cs-api-definition
public void Focus()

OnKeyDown(object, KeyEventArgs)

Raises the KeyDown event.

Declaration

cs-api-definition
public virtual void OnKeyDown(object sender, KeyEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyEventArgs

A KeyEventArgs that contains the event data.

OnKeyPress(object, KeyPressEventArgs)

Raises the KeyPress event.

Declaration

cs-api-definition
public virtual void OnKeyPress(object sender, KeyPressEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

OnKeyUp(object, KeyEventArgs)

Raises the KeyUp event.

Declaration

cs-api-definition
public virtual void OnKeyUp(object sender, KeyEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyEventArgs

A KeyEventArgs that contains the event data.

OnMultilineChanged(object, EventArgs)

Raises the MultilineChanged event.

Declaration

cs-api-definition
public virtual void OnMultilineChanged(object sender, EventArgs e)

Parameters

sender

object

The source of the event.

e

EventArgs

An EventArgs that contains the event data.

OnTextAlignChanged(object, EventArgs)

Raises the TextAlignChanged event.

Declaration

cs-api-definition
public virtual void OnTextAlignChanged(object sender, EventArgs e)

Parameters

sender

object

The source of the event.

e

EventArgs

An EventArgs that contains the event data.

OnValueChanged(object, EventArgs)

Raises the ValueChanged event.

Declaration

cs-api-definition
protected virtual void OnValueChanged(object sender, EventArgs e)

Parameters

sender

object

The source of the event.

e

EventArgs

An EventArgs that contains the event data.

OnValueChanging(object, CancelEventArgs)

Fires the ValueChanging event

Declaration

cs-api-definition
protected virtual void OnValueChanging(object sender, CancelEventArgs e)

Parameters

sender

object

e

CancelEventArgs

ProcessAutoSizeChanged(bool)

Processes auto-size changes.

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

true if auto-sizing is enabled; otherwise, false.

Overrides RadControl.ProcessAutoSizeChanged(bool)

ResetBackColorThemeOverrides()

Resets background color theme overrides for the control.

Declaration

cs-api-definition
protected override void ResetBackColorThemeOverrides()

Overrides RadControl.ResetBackColorThemeOverrides()

ResetForeColorThemeOverrides()

Resets foreground color theme overrides for the control.

Declaration

cs-api-definition
protected override void ResetForeColorThemeOverrides()

Overrides RadControl.ResetForeColorThemeOverrides()

Select()

Activates the control.

Declaration

cs-api-definition
public void Select()

SelectAll()

Selects all text in the control.

Declaration

cs-api-definition
public void SelectAll()

SetBackColorThemeOverrides()

Sets background color theme overrides for the control.

Declaration

cs-api-definition
protected override void SetBackColorThemeOverrides()

Overrides RadControl.SetBackColorThemeOverrides()

SetForeColorThemeOverrides()

Sets foreground color theme overrides for the control.

Declaration

cs-api-definition
protected override void SetForeColorThemeOverrides()

Overrides RadControl.SetForeColorThemeOverrides()

UnwireEvents()

Unwires the event handlers for the masked edit box element.

Declaration

cs-api-definition
protected void UnwireEvents()

WireEvents()

Wires the necessary event handlers for the masked edit box element.

Declaration

cs-api-definition
protected void WireEvents()

WndProc(ref Message)

Processes Windows messages.

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

The Windows Message to process.

Overrides RadControl.WndProc(ref Message)

Events

Click

Occurs when the element is clicked.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler Click

Event Value

EventHandler

DoubleClick

Occurs when the element is double clicked.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler DoubleClick

Event Value

EventHandler

KeyDown

Occurs when a key is pressed down while the control has focus.

Declaration

cs-api-definition
public event KeyEventHandler KeyDown

Event Value

KeyEventHandler

KeyPress

Occurs when a character, space or backspace key is pressed while the control has focus.

Declaration

cs-api-definition
public event KeyPressEventHandler KeyPress

Event Value

KeyPressEventHandler

KeyUp

Occurs when a key is released while the control has focus.

Declaration

cs-api-definition
public event KeyEventHandler KeyUp

Event Value

KeyEventHandler

MultilineChanged

Occurs when the value of the Multiline property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler MultilineChanged

Event Value

EventHandler

TextAlignChanged

Occurs when the value of the TextAlign property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler TextAlignChanged

Event Value

EventHandler

ValueChanged

Occurs when the editing value has been changed.

Declaration

cs-api-definition
public event EventHandler ValueChanged

Event Value

EventHandler

ValueChanging

Occurs when the editing value is changing.

Declaration

cs-api-definition
public event CancelEventHandler ValueChanging

Event Value

CancelEventHandler