[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ListLevel

Class ListLevel

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a single list level, either the only level for a bulleted or numbered list or one of the nine levels of an outline numbered list.

public class ListLevel : FormattingBag
Inheritance
object
ListLevel
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Alignment

Gets or sets the justification of the actual number of the list item.

public ListLevelAlignment Alignment { get; set; }

Property Value

ListLevelAlignment

Remarks

Always returns Left and raises the BulletListPropertyException on set if the property NumberStyle equals Bullet.

BaseKey

Gets the base (this class) key for formatting properties.

protected override string BaseKey { get; }

Property Value

string

CustomNumberStyle

Gets or sets a custom number format using the syntax defined by the XSLT 1.0 format attribute.

public string CustomNumberStyle { get; set; }

Property Value

string

Examples

A value of ア indicates that a consumer must use Katakana numbering.

Font

Gets character formatting used for the list label.

public Font Font { get; }

Property Value

Font

Index

Gets the level index in the parent ListTemplate.

public int Index { get; }

Property Value

int

IsLegal

Gets or sets a value indicating whether the level turns all inherited numbers to Arabic. The false value preserves their number style.

public bool IsLegal { get; set; }

Property Value

bool

Remarks

Always returns false and raises the BulletListPropertyException on set if the property NumberStyle equals Bullet.

LinkedStyle

Gets or sets the paragraph style that is linked to this list level.

public Style LinkedStyle { get; set; }

Property Value

Style

ListTemplate

Gets the parent ListTemplate.

public ListTemplate ListTemplate { get; }

Property Value

ListTemplate

NumberFormat

Gets or sets the number format for the list level.

public string NumberFormat { get; set; }

Property Value

string

Remarks

The percent sign (%) followed by any number from 1 through 9 represents the number style from the respective list level.

For example, if you wanted the format for the first level to be "Article I," "Article II," and so on, the string for the NumberFormat property would be "Article %1" and the NumberStyle property would be set to UpperRoman.

If the NumberStyle property is set to Bullet, the string for the NumberFormat property can only contain one character.

NumberPosition

Gets or sets the position (in points) of the number or bullet for the list level.

public float NumberPosition { get; set; }

Property Value

float

NumberStyle

Gets or sets the number style for this list level.

public NumberStyle NumberStyle { get; set; }

Property Value

NumberStyle

ParagraphFormat

Gets the paragraph properties that are applied as part of a given numbering level.

public ParagraphFormat ParagraphFormat { get; }

Property Value

ParagraphFormat

Remarks

These paragraph properties are applied to any numbered paragraph that references this list level. Paragraph properties specified on the numbered paragraph itself override the paragraph properties specified in this list level.

PictureBullet

Gets or sets image data of the picture bullet shape for the current list level.

public PictureBullet PictureBullet { get; set; }

Property Value

PictureBullet

RestartAfterLevel

Gets or sets the list level that must appear before the specified list level restarts numbering.

The value of 0 means the numbering continues sequentially each time the list level appears.

public int RestartAfterLevel { get; set; }

Property Value

int

StartAt

Gets or sets the starting number for this list level.

public int StartAt { get; set; }

Property Value

int

Remarks

Always returns 1 and raises the BulletListPropertyException on set if the property NumberStyle equals Bullet.

TabPosition

Gets or sets the tab position (in points) for the list level.

public float TabPosition { get; set; }

Property Value

float

TextPosition

Gets or sets the position (in points) for the second line of wrapping text for the list level.

public float TextPosition { get; set; }

Property Value

float

TrailingCharacter

Gets or sets the character inserted after the number for the list level.

public ListTrailingCharacter TrailingCharacter { get; set; }

Property Value

ListTrailingCharacter