Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfTextListItem

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
1f76172c94d1 with working tree changes
Modifiers
sealed

A native list item containing paragraphs and optionally nested lists.

Inheritance

  • object
  • OdfTextListItem

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Methods

public OdfTextList AddList(bool ordered = false) #

Adds a nested list with an independent native style at its actual nesting level, up to level ten.

Parameters

ordered bool = false optional
public OdfTextParagraph AddParagraph(string? text = null) #

Adds a paragraph after existing content.

Parameters

text string? = null optional
public XElement ToXml() #

Returns a detached copy of the native item, including numbering overrides.

Returns

XElement

Properties

public long? StartValue { get; set; } #

Optional nonnegative numbering restart for this item. Null uses the list counter.

public IReadOnlyList<OdfTextParagraph> Paragraphs { get; } #

Direct paragraphs and headings in this item.

public IReadOnlyList<OdfTextList> Lists { get; } #

Direct nested lists.