Skip to main content
All docs
V19.1

Member Table: Formatting

  • 2 minutes to read

Member

Description

An editor’s RepositoryItem.DisplayFormat property

This property allows you to specify the settings used to automatically format the editor’s values in display mode (when the editor is not active). You can:

  • use the standard or custom format strings (the most used approach to format date/time and numeric values);
  • use the composite formatting feature that allows you to add custom text to the output string;
  • apply a custom formatter that will handle the format operations.

For more information on these scenarios, see the Formatting Approaches topic.

An editor’s RepositoryItem.EditFormat property

This property specifies the settings used to format values when an editor is about to switch to edit mode. These do not restrict an end-user’s input and do not force the editor to keep the initial formatting.

Format settings for the RepositoryItem.EditFormat property can be specified in the same manner as for the RepositoryItem.DisplayFormat property.

An editor’s RepositoryItem.FormatEditValue event

Allows you to format values manually.

An editor’s RepositoryItem.CustomDisplayText event

Allows you to provide custom display text within editors.

An editor’s RepositoryItemTextEdit.Mask property.

This allows you to enable mask mode and specify mask settings for the editor. A mask restricts an end-user’s input as it provides a pattern for entering values. Moreover, the mask used to enter values is also applied to format values in display mode if the MaskProperties.UseMaskAsDisplayFormat property is set to true.