Class ListItem
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
stringthe textual contents of the list item
ListItem(Image)
Creates a list item with an image.
public ListItem(Image image)
Parameters
image
Imagethe graphical contents of the list item
Methods
GetAccessibilityProperties()
public override AccessibilityProperties GetAccessibilityProperties()
Returns
GetDefaultProperty<T1>(int)
public override T1 GetDefaultProperty<T1>(int property)
Parameters
property
int
Returns
- T1
Type Parameters
T1
MakeNewRenderer()
protected override IRenderer MakeNewRenderer()
Returns
SetListSymbol(string)
Sets the list item symbol to be used.
public virtual ListItem SetListSymbol(string symbol)
Parameters
symbol
stringthe 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
Returns
- ListItem
this list.
SetListSymbol(Text)
Sets the list item symbol to be used.
public virtual ListItem SetListSymbol(Text text)
Parameters
Returns
- ListItem
this list item.
SetListSymbol(ListNumberingType)
Sets the list item numbering type to be used.
public virtual ListItem SetListSymbol(ListNumberingType listNumberingType)
Parameters
listNumberingType
ListNumberingTypethe 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
intthe custom value property of an ordered list's list item.
Returns
- ListItem
this listItem.