public class CList extends CBlockElement
elementPtr| Constructor and Description |
|---|
CList(long ptr)
Create a list element with native pointer.
|
| Modifier and Type | Method and Description |
|---|---|
CListItem |
createListItemElement()
Create a list item element as a child of this list with empty text.
|
CListItem |
createListItemElement(java.lang.String text)
Create a list item element as a child of this list with initial text.
|
CElementType |
getType()
Get element type.
|
boolean |
IsUnordered()
Check whether this list is unordered.
|
CList |
setItemStartIndex(int start)
Set the start index for ordered list items (e.g., start numbering from N).
|
CList |
setListSymbol(CBackgroundImage image)
Set list symbol using an image source array.
|
CList |
setListSymbol(CListNumberType listNumberingType)
Set list numbering type for ordered lists.
|
CList |
setListSymbol(CListSymbolType type)
Set list symbol using a predefined symbol type.
|
CList |
setListSymbol(CText text)
Set list symbol using a
CText element. |
CList |
setListSymbol(java.lang.String text)
Set list symbol using a plain text string.
|
CList |
setSymbolIndent(float symbolIndent)
Set the indentation between the list symbol and the list item content.
|
getHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, setHeight, setHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setVerticalAlignment, setWidth, setWidthaddStyle, getChildren, getStyles, hasProperty, isAbsolute, isEmptydeleteProperty, getProperties, getStrokeColor, getStrokeWidth, hasProperty, setAbsolutePosition, setAbsolutePosition, setBackgroundColor, setBackgroundImage, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setFontColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHorizontalAlignment, setInlineVerticalAlignment, setOpacity, setStrokeColor, setStrokeWidth, setTextAlignment, setUnderline, setWordSpacingpublic CList(long ptr)
ptr - Native list pointer/handle.public CElementType getType()
CElementType.ELEMENT_LIST.public CListItem createListItemElement()
CListItem element instance.public CListItem createListItemElement(java.lang.String text)
text - Item text.CListItem element instance.public boolean IsUnordered()
public CList setListSymbol(java.lang.String text)
text - Symbol text (e.g., "•", "-", etc.).CList instance.public CList setListSymbol(CText text)
CText element.
This method supports chaining.text - Text element used as symbol.CList instance.public CList setListSymbol(CListSymbolType type)
type - Symbol type enum.CList instance.public CList setListSymbol(CBackgroundImage image)
image - Image sources (paths or URLs), as expected by native implementation.CList instance.public CList setListSymbol(CListNumberType listNumberingType)
listNumberingType - Numbering type enum.CList instance.public CList setItemStartIndex(int start)
start - Start index.CList instance.