Description |
---|
Excerpt |
---|
This class is used to represent a list in a Word document. Lists are part of the BlockElement objects of an Element. Using this class, Lists can be read and written. Lists contain list entries, which are basically paragraphs with additional features. |
Signature | C# | C# | |
---|---|---|---|
Wiki Markup | |||
{description}
{excerpt}This class is used to represent a list in a Word document. Lists are part of the _BlockElement_ objects of an [Element|Element]. Using this class, Lists can be read and written. Lists contain list entries, which are basically paragraphs with additional features.{excerpt}
{signature:C#}
public sealed class List : Element
| |||
Signature | |||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class List
Inherits Element
| |
Remarks | |||
To create a new list, use {signature} {remarks}To create a new list, use [Element.InsertListBefore()|Element.InsertListBefore(Boolean)] or [Element.InsertListAfter()|Element.InsertListAfter(Boolean)]. To get an existing list, use [Element.GetElements(Element.Type). | |||
Example | |||
The following sample demonstrates how to create a new list at the end of a document as well as how to get the first list of a document. Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Properties |
---|
...
Name
...
Description
...
...
{code} {example} {properties} ||Name||Description|| |[NumEntries|List.NumEntries]|{excerpt-include:List.NumEntries |
...
Methods |
---|
...
Name
...
Description
|nopanel=true}| {methods} ||Name||Description|| |[AddEntry(Int32) |
...
|List.AddEntry(Int32) |
...
]|{excerpt-include:List.AddEntry(Int32) |
...
|nopanel |
...
=true}| |[GetEntry(Int32) |
...
|List.GetEntry(Int32) |
...
]|{excerpt-include:List.GetEntry(Int32) |
...
|nopanel |
...
=true}| |[GetLevel(Int32) |
...
|List.GetLevel(Int32) |
...
]|{excerpt-include:List.GetLevel(Int32) |
...
|nopanel |
...
=true}| |[InsertEntry(Int32, Int32) |
...
|List.InsertEntry(Int32, Int32) |
...
]|{excerpt-include:List.InsertEntry(Int32, Int32) |
...
|nopanel |
...
=true}| |