Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
    • .NET API Reference
      • EO.Base
      • EO.Base.UI
      • EO.Extensions
      • EO.Pdf
      • EO.Pdf.Acm
      • EO.Pdf.Contents
      • EO.Pdf.Drawing
      • EO.Pdf.Mvc
      • EO.Web
      • EO.WebBrowser
      • EO.WebBrowser.DOM
      • EO.WebEngine
      • EO.WinForm
      • EO.Wpf
        • EO.Wpf
        • Classes
          • BareButton Class
          • Bitmap Class
          • BitmapButton Class
          • BooleanDependencyPropertyRoutedEventArgs Class
          • Button Class
          • Calendar Class
          • CalendarDayButton Class
          • CalendarMonth Class
          • CancelEventArgs Class
          • CheckBox Class
          • ChoiceMaskedEditSegment Class
          • ComboBox Class
          • ComboBoxItem Class
          • DatePicker Class
          • DateRangeCollection Class
          • DateRangeCollectionConverter Class
          • DockContainer Class
          • DockItem Class
          • DockItemClosingEventArgs Class
          • DockItemCollection Class
          • DockItemEventArgs Class
          • DockItemNeededEventArgs Class
          • DockView Class
          • DockViewCollection Class
          • DockViewCommands Class
          • DockViewEventArgs Class
          • DockViewNeededEventArgs Class
          • DocumentItem Class
          • DropDown Class
          • DropDownButton Class
          • DropDownService Class
          • EditItemEventArgs Class
          • Effect Class
          • EffectManager Class
          • Expander Class
          • ItemDragEventArgs Class
          • ItemDragOverEventArgs Class
          • ItemDropEventArgs Class
          • ItemsControlHelper Class
          • LinkButton Class
          • ListBox Class
          • ListBoxItem Class
          • MaskedEdit Class
          • MaskedEditSegment Class
          • MaskMaskedEditSegment Class
          • Menu Class
          • MenuBase Class
          • MenuItem Class
          • MonthPicker Class
          • MultiplyConverter Class
          • NamedResourceKey Class
          • NegationConverter Class
          • NewItemRequestedEventArgs Class
          • NumericMaskedEditSegment Class
          • OpacityConverter Class
          • PatternMaskedEditSegment Class
          • PdfViewer Class
          • ProgressBar Class
          • RadialPanel Class
          • RadioButton Class
          • RangeSlider Class
          • RegexMaskedEditSegment Class
          • RingDefinition Class
          • RingDefinitionCollection Class
          • Runtime Class
          • SkinStyleInfo Class
          • Slider Class
          • SliderBase Class
          • SpinEdit Class
          • SplitButton Class
          • SplitLineHeightConverter Class
          • SplitView Class
          • StaticMaskedEditSegment Class
          • TabControl Class
          • TabItem Class
          • TabItemCloseEventArgs Class
          • TabItemEventArgs Class
          • TemplatePresenter Class
          • ThemeManager Class
          • ThemeNames Class
          • ThemeStyleInfo Class
          • TreeView Class
          • TreeViewItem Class
          • UIElementHelper Class
          • UnitConverter Class
          • WebControl Class
          • WebView Class
          • WebViewHost Class
          • WeekDaysCollection Class
          • WindowChrome Class
          • WindowCommands Class
          • YearPicker Class
        • Structures
        • Enumerations
        • Delegates
      • EO.Wpf.Gauge
      • EO.Wpf.Gauge.Shapes
      • EO.Wpf.Primitives
      • EO.Wpf.Themes.Aero
      • EO.Wpf.Themes.Classic
      • EO.Wpf.Themes.Luna
      • EO.Wpf.Themes.Metro
      • EO.Wpf.Themes.Royale
    • JavaScript API Reference
Value Property

Gets or sets the value of this MaskedEditSegment.

Syntax
 public Object Value { get; set; }
Remarks

If the segment is empty, then Value returns null. If the segment is not empty, then the following table describes the data type of Value:

Segment Type Data Type
StaticMaskedEditSegment Any object type. StaticMaskedEditSegment does not perform any conversion of Value.
NumericMaskedEditSegment

The type is System.Decimal. It is possible for you to assign a value of compatible type, for example, a System.Int32 to the Value property. In that case it will be converted into System.Decimal.

The Value of a NumericMaskedEditSegment always conforms with the segment's Minimum and Maximum.

ChoiceMaskedEditSegment A System.Integer that represents the index of the option selected (when no option is selected, Value returns null).
MaskMaskedEditSegment

A System.String value that represents the content of the segment.

The Value of a MaskMaskedEditSegment may not conform the Mask in the following two scenarios:

  • If the text user entered does not match the Mask, then character at the unmatching position will be replaced with space character. For example, if user enters "1a2" for mask "000", then Value will return "1 2", where there is a space between '1' and '2'.
  • The text user entered has matched the Mask so far, but it's not completed yet. For example, mask "000" represents three required digits. If user has only entered two digits "12", it matches the mask so far but is not complete. In this case Value will return "12" (however IsValid will be false for that segment).
RegexMaskedEditSegment A string value directly as user entered. A RegexMaskedEditSegment does not perform any kind of in place conversion of user entered value. However it does automatically update its Text property and IsValid property as user types.
See Also