Skip to main content
All docs
V25.1
  • RepositoryItemTextEdit.UseMaskAsDisplayFormat Property

    Gets or sets whether the editor uses an Input Mask to format its display value when not focused. This property replaces the DevExpress.XtraEditors.Mask.MaskProperties.UseMaskAsDisplayFormat property.

    Namespace: DevExpress.XtraEditors.Repository

    Assembly: DevExpress.XtraEditors.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DXCategory("Format")]
    public virtual bool UseMaskAsDisplayFormat { get; set; }

    Property Value

    Type Description
    Boolean

    true, if the editor should use the same mask for display and edit modes; false to use the input mask exclusively for the edit mode.

    Remarks

    Input Masks restrict data input and allow you to guide users to enter correct values. These masks are in effect only when an editor is focused. Inactive editors can use a different format to display their values (the display format). The following figure illustrates an editor with a “long date” input mask and a “short date” display format.

    different mask and display format

    If you want the same format for both display and edit modes, enable the UseMaskAsDisplayFormat to avoid setting the same format pattern twice.

    See Also