Class ListLevelAdv
Represents the ListLevelAdv class.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class ListLevelAdv : BaseNode
Examples
The following code example demonstrates how to define an abstract list.
<RichTextBoxAdv:ListLevelAdv ListLevelPattern="Number" NumberFormat="(%1.)" StartAt="1" RestartLevel="0" FollowCharacter="Tab">
<RichTextBoxAdv:ListLevelAdv.ParagraphFormat>
<RichTextBoxAdv:ParagraphFormat LeftIndent="48" FirstLineIndent="-24" />
</RichTextBoxAdv:ListLevelAdv.ParagraphFormat>
<RichTextBoxAdv:ListLevelAdv.CharacterFormat>
<RichTextBoxAdv:CharacterFormat Italic="True" />
</RichTextBoxAdv:ListLevelAdv.CharacterFormat>
</RichTextBoxAdv:ListLevelAdv>
// Initializes an abstract list.
AbstractListAdv abstractList = new AbstractListAdv();
// Defines the id for abstract list.
abstractList.AbstractListId = 6;
// Initializes a list level.
ListLevelAdv listLevel = new ListLevelAdv();
listLevel.ListLevelPattern = ListLevelPattern.Number;
listLevel.NumberFormat = "(%1.)";
listLevel.StartAt = 1;
listLevel.RestartLevel = 0;
listLevel.FollowCharacter = FollowCharacterType.Tab;
listLevel.ParagraphFormat = new ParagraphFormat(listLevel);
listLevel.ParagraphFormat.LeftIndent = 48;
listLevel.ParagraphFormat.FirstLineIndent = -24;
listLevel.CharacterFormat = new CharacterFormat(listLevel);
listLevel.CharacterFormat.Italic = true;
' Initializes a list level.
Dim listLevel As New ListLevelAdv()
listLevel.ListLevelPattern = ListLevelPattern.Number
listLevel.NumberFormat = "(%1.)"
listLevel.StartAt = 1
listLevel.RestartLevel = 0
listLevel.FollowCharacter = FollowCharacterType.Tab
listLevel.ParagraphFormat = New ParagraphFormat(listLevel)
listLevel.ParagraphFormat.LeftIndent = 48
listLevel.ParagraphFormat.FirstLineIndent = -24
listLevel.CharacterFormat = New CharacterFormat(listLevel)
listLevel.CharacterFormat.Italic = true
Constructors
ListLevelAdv()
Initializes a new instance of the ListLevelAdv class.
Declaration
public ListLevelAdv()
ListLevelAdv(AbstractListAdv)
Initializes a new instance of the ListLevelAdv class for the specified AbstractListAdv.
Declaration
public ListLevelAdv(AbstractListAdv abstractListAdv)
Parameters
Type | Name | Description |
---|---|---|
AbstractListAdv | abstractListAdv | The AbstractListAdv to which the ListLevelAdv is associated. |
ListLevelAdv(LevelOverrideAdv)
Initializes a new instance of the ListLevelAdv class for the specified LevelOverrideAdv.
Declaration
public ListLevelAdv(LevelOverrideAdv levelOverrideAdv)
Parameters
Type | Name | Description |
---|---|---|
LevelOverrideAdv | levelOverrideAdv | The LevelOverrideAdv to which the ListLevelAdv is associated. |
Fields
CharacterFormatProperty
Identifies the CharacterFormat dependency property.
Declaration
public static readonly DependencyProperty CharacterFormatProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the CharacterFormat dependency property. |
FollowCharacterProperty
Identifies the FollowCharacter dependency property.
Declaration
public static readonly DependencyProperty FollowCharacterProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the FollowCharacter dependency property. |
ListLevelPatternProperty
Identifies the ListLevelPattern dependency property.
Declaration
public static readonly DependencyProperty ListLevelPatternProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the ListLevelPattern dependency property. |
NumberFormatProperty
Identifies the NumberFormat dependency property.
Declaration
public static readonly DependencyProperty NumberFormatProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the NumberFormat dependency property. |
ParagraphFormatProperty
Identifies the ParagraphFormat dependency property.
Declaration
public static readonly DependencyProperty ParagraphFormatProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the ParagraphFormat dependency property. |
RestartLevelProperty
Identifies the RestartLevel dependency property.
Declaration
public static readonly DependencyProperty RestartLevelProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the RestartLevel dependency property. |
StartAtProperty
Identifies the StartAt dependency property.
Declaration
public static readonly DependencyProperty StartAtProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the StartAt dependency property. |
Properties
CharacterFormat
Gets or sets the CharacterFormat of the ListLevelAdv.
Declaration
public CharacterFormat CharacterFormat { get; set; }
Property Value
Type | Description |
---|---|
CharacterFormat | The CharacterFormat of the ListLevelAdv. |
See Also
FollowCharacter
Gets or sets the FollowCharacterType of the ListLevelAdv.
Declaration
public FollowCharacterType FollowCharacter { get; set; }
Property Value
Type | Description |
---|---|
FollowCharacterType | The FollowCharacterType of the ListLevelAdv. |
See Also
LevelNumber
Gets the level number of the ListLevelAdv.
Declaration
public int LevelNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The level number of the ListLevelAdv. |
ListLevelPattern
Gets or sets the ListLevelPattern of the ListLevelAdv.
Declaration
public ListLevelPattern ListLevelPattern { get; set; }
Property Value
Type | Description |
---|---|
ListLevelPattern | The ListLevelPattern of the ListLevelAdv. |
See Also
NumberFormat
Gets or sets the number format of the ListLevelAdv.
Declaration
public string NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The number format of the ListLevelAdv. |
ParagraphFormat
Gets or sets the ParagraphFormat of the ListLevelAdv.
Declaration
public ParagraphFormat ParagraphFormat { get; set; }
Property Value
Type | Description |
---|---|
ParagraphFormat | The ParagraphFormat of the ListLevelAdv. |
See Also
RestartLevel
Gets or sets the level number after which the ListLevelAdv should restart its value.
Declaration
public int RestartLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The level number after which the ListLevelAdv should restart its value. |
StartAt
Gets or sets the value from which the ListLevelAdv should start at.
Declaration
public int StartAt { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The value from which the ListLevelAdv should start at. |
Methods
Dispose()
Releases all resources used by the ListLevelAdv instance.
Declaration
public void Dispose()