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

NameTypeAccessDescription
ItemsList<ListBlockItem>ReadThe items, in order.
MarkerGapdoubleRead/WriteThe space between the widest marker and the items’ text, in points.
MarkerAlignmentHorizontalAlignmentRead/WriteWhere 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.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment applied to this paragraph.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment applied to this paragraph.
MarginMarginInfoRead/WriteOuter-margin info applied to this paragraph.
IsFirstParagraphInColumnboolRead/WriteForce the paragraph to start a new column.
IsKeptWithNextboolRead/WriteKeep this paragraph on the same page as the next one.
IsInNewPageboolRead/WriteForce the paragraph to start on a new page.
IsInLineParagraphboolRead/WriteInline paragraph flag (does not start a new line).
HyperlinkTextstring?Read/WriteLegacy string-typed hyperlink target.
HyperlinkHyperlink?Read/WriteTyped hyperlink decoration applied to the paragraph.
ZIndexintRead/WriteZ-order index used by the DOM renderer.

Methods

SignatureDescription
BaseParagraph()Creates a paragraph with default alignment, an empty margin and no hyperlink.
Clone()Shallow clone — copies scalar/ref-shared state.

See Also