Class AbstractListAdv
Represents an abstract list that is used for defining bullets and numbering.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class AbstractListAdv : BaseNode
Examples
The following code example demonstrates how to define an abstract list.
<RichTextBoxAdv:AbstractListAdv AbstractListId="6">
<RichTextBoxAdv:ListLevelAdv ListLevelPattern="Number" NumberFormat="(%1.)" StartAt="1" FollowCharacter="Tab">
<RichTextBoxAdv:ListLevelAdv.ParagraphFormat>
<RichTextBoxAdv:ParagraphFormat LeftIndent="48" FirstLineIndent="-24" />
</RichTextBoxAdv:ListLevelAdv.ParagraphFormat>
</RichTextBoxAdv:ListLevelAdv>
<!-- Upto nine list levels can be added.-->
</RichTextBoxAdv:AbstractListAdv>
// Initializes an abstract list.
AbstractListAdv abstractListAdv = new AbstractListAdv();
// Defines the id for abstract list.
abstractListAdv.AbstractListId = 6;
// Initializes a list level.
ListLevelAdv listLevel = new ListLevelAdv(abstractListAdv);
listLevel.ListLevelPattern = ListLevelPattern.Number;
listLevel.NumberFormat = "(%1.)";
listLevel.StartAt = 1;
listLevel.FollowCharacter = FollowCharacterType.Tab;
listLevel.ParagraphFormat = new ParagraphFormat(listLevel);
listLevel.ParagraphFormat.LeftIndent = 48;
listLevel.ParagraphFormat.FirstLineIndent = -24;
// Adds the list level to the abstract list. Upto nine list levels can be added.
abstractListAdv.Levels.Add(listLevel);
' Initializes an abstract list.
Dim abstractListAdv As New AbstractListAdv()
' Defines the id for abstract list.
abstractListAdv.AbstractListId = 6
' Initializes a list level.
Dim listLevel As New ListLevelAdv(abstractListAdv)
listLevel.ListLevelPattern = ListLevelPattern.Number
listLevel.NumberFormat = "(%1.)"
listLevel.StartAt = 1
listLevel.FollowCharacter = FollowCharacterType.Tab
listLevel.ParagraphFormat = New ParagraphFormat(listLevel)
listLevel.ParagraphFormat.LeftIndent = 48
listLevel.ParagraphFormat.FirstLineIndent = -24
' Adds the list level to the abstract list. Upto nine list levels can be added.
abstractListAdv.Levels.Add(listLevel)
Constructors
AbstractListAdv()
Initializes a new instance of the AbstractListAdv class.
Declaration
public AbstractListAdv()
AbstractListAdv(DocumentAdv)
Initializes a new instance of the AbstractListAdv class for the specified DocumentAdv.
Declaration
public AbstractListAdv(DocumentAdv documentAdv)
Parameters
Type | Name | Description |
---|---|---|
DocumentAdv | documentAdv | The DocumentAdv to which the AbstractListAdv is associated. |
Fields
AbstractListIdProperty
Identifies the AbstractListId dependency property.
Declaration
public static readonly DependencyProperty AbstractListIdProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the AbstractListId dependency property. |
Properties
AbstractListId
Gets or sets the identifier of the AbstractListAdv.
Declaration
public int AbstractListId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The Id that uniquely identifies the AbstractListAdv in the DocumentAdv. |
Levels
Gets or sets the ListLevelAdvCollection of the AbstractListAdv.
Declaration
public ListLevelAdvCollection Levels { get; }
Property Value
Type | Description |
---|---|
ListLevelAdvCollection | The ListLevelAdvCollection for the AbstractListAdv. |
See Also
Methods
Dispose()
Releases all resources used by the AbstractListAdv instance.
Declaration
public void Dispose()