|
|
|
|
DisplayFormat (Property) In french: FormatAffichage
The DisplayFormat property gets and sets the expected display format for a given text: plain text, RTF or Markdown. This text can be: - the caption of a Static control.
- the caption of an Edit control.
- the caption of a column in a Table control.
- the caption of a menu option.
STC_Info.DisplayFormat = dfMarkdown STC_Info = "**Bold** and *italic* text"
Syntax
Getting the expected display format of the text in a control Hide the details
<Result> = <Control used>.DisplayFormat
<Result>: Integer constant Format expected by the Static control:
| | dfMarkdown | Markdown text. | dfPlainText | Text without specific format. | dfRTF | String in Rich Text Format. |
<Control used>: Control name Name of the control used. This control can correspond to: - the name of a Static control,
- the name of an Edit control,
- the name of a column in a Table control,
- the name of a menu option.
Setting the expected display format of the text in a control Hide the details
<Control used>.DisplayFormat = <New format>
<Control used>: Control name Name of the control used. This control can correspond to: - the name of a Static control,
- the name of an Edit control,
- the name of a column in a Table control,
- the name of a menu option.
<New format>: Integer constant New format expected by the Static control:
| | dfMarkdown | Markdown text. | dfPlainText | Text without specific format. | dfRTF | String in Rich Text Format. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|