Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Caption

settings.Properties.Caption = "Text Box"
*
v
settings.Properties.Caption = "Combo Box"
settings.Properties.CaptionSettings.RequiredMarkDisplayMode = EditorRequiredMarkMode.Auto (default value)
settings.Properties.CaptionSettings.RequiredMark = "*" (default value)
settings.Properties.CaptionSettings.Position = EditorCaptionPosition.Top
settings.Properties.ValidationSettings.RequiredField.IsRequired = true
settings.Properties.ValidationSettings.Display = Display.Dynamic
(optional)
settings.Properties.Caption = "Memo"
settings.Properties.CaptionSettings.Position = EditorCaptionPosition.Top
settings.Properties.CaptionSettings.RequiredMarkDisplayMode = EditorRequiredMarkMode.Optional
settings.Properties.CaptionSettings.OptionalMark = " (optional)"
settings.Properties.Caption = "Radio Button List"
settings.Properties.CaptionSettings.VerticalAlign = EditorCaptionVerticalAlign.Middle


DevExpress Data Editors allow you to specify an editor's caption, which can be positioned and aligned relative to an editor. To customize the caption settings, you can use the following properties.

  • Caption – specifies the caption text.
  • Position – specifies the position of a caption related to the editor.
  • HorizontalAlign, VerticalAlign – specify the horizontal and vertical alignment of a caption.
  • ShowColon – specifies whether the colon sign is displayed after caption text.
  • RequiredMark – specifies the text displayed after a caption when the editor value is required.
  • OptionalMark – specifies the text displayed after a caption when the editor value is optional.
  • RequiredMarkDisplayMode – specifies which mark should be displayed after a caption. This property can be set to the following values.
    • Optional. The optional mark is displayed after a caption.
    • Required. The Required mark is displayed after a caption.
    • Hidden. Neither the optional mark nor the required mark is displayed after a caption.
    • Auto. If the IsRequired property is set to true, the required mark is displayed after a caption.

This demo illustrates how a DevExpress Data Editor’s caption can be customized for editors of different types.