Table of Contents

Class DocxListItem

Namespace
PDiffy
Assembly
PDiffy.dll

A paragraph's place in a list: the list's id (w:numId), its level from 0, and the label Word shows, such as "A." or "1.2", counted from the items before it. The label is null when the list or its level isn't defined.

public sealed record DocxListItem : IEquatable<DocxListItem>
Inheritance
DocxListItem
Implements
Inherited Members

Properties

Label

The label as Word shows it, such as "A." or "1.2", or the bullet character for a bullet.

public required string? Label { get; init; }

Property Value

string

Level

The level from 0, the outermost: the paragraph's own w:ilvl, else its style's, else 0.

public required int Level { get; init; }

Property Value

int

List

The list's id (w:numId), the Id of its entry in Lists when the list is defined. Never 0, since numId 0 takes a paragraph out of its list.

public required int List { get; init; }

Property Value

int