Skip to content

Commit f132fdc

Browse files
committed
EJ2-983076-UG-2: Review changes
1 parent 20aac04 commit f132fdc

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

Document-Processing/Word/Word-Processor/blazor/list-format.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ documentation: ug
1111

1212
Lists are a fundamental feature for organizing content in a document, making it easier for readers to follow step-by-step instructions or grasp key points. The [Blazor Word Processor](https://www.syncfusion.com/blazor-components/blazor-word-processor) (Document Editor) provides comprehensive support for single-level and multilevel lists, which can be either ordered (numbered) or unordered (bulleted).
1313

14-
## Creating Lists via the UI
15-
16-
The simplest way to create a list is by using the **Bullets** and **Numbering** buttons in the toolbar. To format paragraphs as a list, select them and click the corresponding button to apply the default list style.
17-
18-
## Managing Lists Programmatically
19-
20-
The Document Editor also provides a complete set of APIs for creating and manipulating lists in code.
21-
2214
### Create a Bulleted List
2315

2416
Bulleted (unordered) lists are ideal for items that do not need to be in a specific sequence. Use the `ApplyBulletAsync` method to apply a bullet format to the selected paragraphs. The method accepts a bullet character and its font family.
@@ -44,21 +36,7 @@ The `numberFormat` parameter uses placeholders like `%1`, `%2`, etc., which corr
4436
await container.DocumentEditor.Editor.ApplyNumberingAsync("%1.", ListLevelPattern.UpRoman);
4537
```
4638

47-
### Create a Multilevel List
48-
49-
To create a multilevel list, you can increase or decrease the indent of list items. This is typically done by applying a base list format and then promoting or demoting specific items.
50-
51-
Use the `IncreaseIndentAsync` and `DecreaseIndentAsync` methods to change the level of a list item.
52-
53-
```csharp
54-
@* First, apply a list format to a selection. *@
55-
await container.DocumentEditor.Editor.ApplyNumberingAsync("%1.", ListLevelPattern.Arabic);
56-
57-
@* Then, select a specific list item and increase its indent to make it a sub-item. *@
58-
await container.DocumentEditor.Editor.IncreaseIndentAsync();
59-
```
60-
61-
### Clear List Formatting
39+
## Clear list
6240

6341
To remove all list formatting from a selection of paragraphs and revert them to normal text, use the `ClearListAsync` method.
6442

0 commit comments

Comments
 (0)