Table of Contents

Class ListItem

Namespace
iText.Layout.Element
Assembly
itext.layout.dll

A list item is a layout element that is one entry in a List.

public class ListItem : Div, IAccessibleElement, IBlockElement, IAbstractElement, IElement, IPropertyContainer
Inheritance
ListItem
Implements
Inherited Members

Remarks

A list item is a layout element that is one entry in a List . The list object controls the prefix, postfix, and numbering of the list items.

Constructors

ListItem()

Creates a ListItem.

public ListItem()

ListItem(string)

Creates a list item with text.

public ListItem(string text)

Parameters

text string

the textual contents of the list item

ListItem(Image)

Creates a list item with an image.

public ListItem(Image image)

Parameters

image Image

the graphical contents of the list item

Methods

GetAccessibilityProperties()

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

GetDefaultProperty<T1>(int)

public override T1 GetDefaultProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

SetListSymbol(string)

Sets the list item symbol to be used.

public virtual ListItem SetListSymbol(string symbol)

Parameters

symbol string

the textual symbol to be used for the item.

Returns

ListItem

this list item.

SetListSymbol(Image)

Sets the list item symbol to be used.

public virtual ListItem SetListSymbol(Image image)

Parameters

image Image

the Image object to be used for the item.

Returns

ListItem

this list.

SetListSymbol(Text)

Sets the list item symbol to be used.

public virtual ListItem SetListSymbol(Text text)

Parameters

text Text

the Text object to be used for the item.

Returns

ListItem

this list item.

SetListSymbol(ListNumberingType)

Sets the list item numbering type to be used.

public virtual ListItem SetListSymbol(ListNumberingType listNumberingType)

Parameters

listNumberingType ListNumberingType

the ListNumberingType that will generate appropriate prefixes for the ListItem.

Returns

ListItem

this list item.

SetListSymbolOrdinalValue(int)

Customizes the index of the item in the list.

public virtual ListItem SetListSymbolOrdinalValue(int ordinalValue)

Parameters

ordinalValue int

the custom value property of an ordered list's list item.

Returns

ListItem

this listItem.