ListBlock
Overview
ListBlock is a class in Aspose.PDF FOSS for .NET.
Inherits from: BaseParagraph.
A list: items laid one under another, each item’s paragraphs set in a column the list indents past its markers, and each item’s marker set on the item’s first line.
This class declares 2 methods for ListBlock objects in .NET programs.
Available methods include: BaseParagraph, Clone.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: HorizontalAlignment, Hyperlink, HyperlinkText, IsFirstParagraphInColumn, IsInLineParagraph, IsInNewPage, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Items | List<ListBlockItem> | Read | The items, in order. |
MarkerGap | double | Read/Write | The space between the widest marker and the items’ text, in points. |
MarkerAlignment | HorizontalAlignment | Read/Write | Where a marker stands in the column: Right (the default) ends it at the gap before the text, so markers of different widths line up on their right edges; Left starts it at the list’s left edge. |
HorizontalAlignment | HorizontalAlignment | Read/Write | Horizontal alignment applied to this paragraph. |
VerticalAlignment | VerticalAlignment | Read/Write | Vertical alignment applied to this paragraph. |
Margin | MarginInfo | Read/Write | Outer-margin info applied to this paragraph. |
IsFirstParagraphInColumn | bool | Read/Write | Force the paragraph to start a new column. |
IsKeptWithNext | bool | Read/Write | Keep this paragraph on the same page as the next one. |
IsInNewPage | bool | Read/Write | Force the paragraph to start on a new page. |
IsInLineParagraph | bool | Read/Write | Inline paragraph flag (does not start a new line). |
HyperlinkText | string? | Read/Write | Legacy string-typed hyperlink target. |
Hyperlink | Hyperlink? | Read/Write | Typed hyperlink decoration applied to the paragraph. |
ZIndex | int | Read/Write | Z-order index used by the DOM renderer. |
Methods
| Signature | Description |
|---|---|
BaseParagraph() | Creates a paragraph with default alignment, an empty margin and no hyperlink. |
Clone() | Shallow clone — copies scalar/ref-shared state. |