Back to Devexpress

ListLevelProperties.DisplayFormatString Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-listlevelproperties.md

latest4.5 KB
Original Source

ListLevelProperties.DisplayFormatString Property

Specifies the number format string for the level’s marker.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
string DisplayFormatString { get; set; }
vb
Property DisplayFormatString As String

Property Value

TypeDescription
String

A string value that specifies how the level number is displayed.

|

Remarks

Bulleted List

Specifies a symbol used to mark the list item. Use the ListLevel.CharacterProperties property to specify the desired font to correctly display a numbering symbol.

Numbered List

A number in curling braces {N}, where N is the level index, is substituted with a symbol used to display the level number for a corresponding level.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DisplayFormatString property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/List.cs#L28

csharp
//Without this step, the list is considered as numbered
level.DisplayFormatString = "\u00B7";
level.CharacterProperties.FontName = "Symbol";

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ListActions.cs#L28

csharp
//Without this step, the list is considered as numbered
level.DisplayFormatString = "\u00B7";
level.CharacterProperties.FontName = "Symbol";

word-document-api-examples/CS/CodeExamples/ListsActions.cs#L42

csharp
// Without this step, the list is considered as numbered.
level.DisplayFormatString = "\u00B7";
level.CharacterProperties.FontName = "Symbol";

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/List.vb#L24

vb
'Without this step, the list is considered as numbered
level.DisplayFormatString = "·"
level.CharacterProperties.FontName = "Symbol"

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ListActions.vb#L25

vb
'Without this step, the list is considered as numbered
level.DisplayFormatString = ChrW(&H00B7).ToString()
level.CharacterProperties.FontName = "Symbol"

word-document-api-examples/VB/CodeExamples/ListsActions.vb#L37

vb
' Without this step, the list is considered as numbered.
level.DisplayFormatString = "·"
level.CharacterProperties.FontName = "Symbol"

See Also

ListLevelProperties Interface

ListLevelProperties Members

DevExpress.XtraRichEdit.API.Native Namespace