# RtfLegacyNumbering

Word 6/95 legacy paragraph numbering metadata represented by the {\*\pn ...} destination and related \pn* controls.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfLegacyNumbering.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L108)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

Word 6/95 legacy paragraph numbering metadata represented by the {\*\pn ...} destination and related \pn* controls.

## Inheritance

- object
- RtfLegacyNumbering

## Usage

Explore 5 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

- Property [RtfParagraph.LegacyNumbering](/api/rtf/officeimo-rtf-rtfparagraph/#property-legacynumbering)
- Property [RtfStyle.LegacyNumbering](/api/rtf/officeimo-rtf-rtfstyle/#property-legacynumbering)

### Accepted by parameters 3

- Method [RtfLegacyNumbering.CopyFrom](/api/rtf/officeimo-rtf-rtflegacynumbering/#method-copyfrom-officeimo-rtf-rtflegacynumbering) parameter `source`
- Method [RtfParagraph.SetLegacyNumbering](/api/rtf/officeimo-rtf-rtfparagraph/#method-setlegacynumbering-action-officeimo-rtf-rtflegacynumbering) parameter `configure`
- Method [RtfStyle.SetLegacyNumbering](/api/rtf/officeimo-rtf-rtfstyle/#method-setlegacynumbering-action-officeimo-rtf-rtflegacynumbering) parameter `configure`

Filter members 

Show inherited

## Constructors

`public RtfLegacyNumbering()` [#](#constructor-ctor)

## Methods

`public void Clear()` [#](#method-clear)

[RtfLegacyNumbering.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L137)

Clears all legacy numbering metadata.

`public void CopyFrom(RtfLegacyNumbering source)` [#](#method-copyfrom-officeimo-rtf-rtflegacynumbering)

[RtfLegacyNumbering.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L108)

Copies all legacy numbering metadata from another instance.

Parameters

**source OfficeIMO.Rtf.RtfLegacyNumbering required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool Enabled { get; set; }` [#](#property-enabled)

[RtfLegacyNumbering.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L8)

Whether legacy paragraph numbering is explicitly enabled by \pn.

`public RtfLegacyNumberingLevelKind LevelKind { get; set; }` [#](#property-levelkind)

[RtfLegacyNumbering.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L11)

Legacy numbering level kind.

`public int? Level { get; set; }` [#](#property-level)

[RtfLegacyNumbering.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L14)

Explicit one-based paragraph level from \pnlvl, when present.

`public RtfLegacyNumberingStyle NumberStyle { get; set; }` [#](#property-numberstyle)

[RtfLegacyNumbering.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L17)

Legacy numbering text style.

`public bool? NumberEachCellOnce { get; set; }` [#](#property-numbereachcellonce)

[RtfLegacyNumbering.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L20)

Number each table cell only once, represented by \pnnumonce.

`public bool? NumberAcrossRows { get; set; }` [#](#property-numberacrossrows)

[RtfLegacyNumbering.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L23)

Number across rows instead of down columns, represented by \pnacross.

`public bool? HangingIndent { get; set; }` [#](#property-hangingindent)

[RtfLegacyNumbering.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L26)

Paragraph uses a hanging indent, represented by \pnhang.

`public bool? RestartAfterSection { get; set; }` [#](#property-restartaftersection)

[RtfLegacyNumbering.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L29)

Restart numbering after section breaks, represented by \pnrestart.

`public bool? IncludePreviousLevels { get; set; }` [#](#property-includepreviouslevels)

[RtfLegacyNumbering.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L32)

Include previous level numbers, represented by \pnprev.

`public int? IndentTwips { get; set; }` [#](#property-indenttwips)

[RtfLegacyNumbering.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L35)

Minimum distance from margin to body text in twips, represented by \pnindent.

`public int? SpaceTwips { get; set; }` [#](#property-spacetwips)

[RtfLegacyNumbering.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L38)

Distance from number text to body text in twips, represented by \pnsp.

`public int? StartAt { get; set; }` [#](#property-startat)

[RtfLegacyNumbering.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L41)

Starting number represented by \pnstart.

`public RtfLegacyNumberingAlignment? Alignment { get; set; }` [#](#property-alignment)

[RtfLegacyNumbering.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L44)

Numbering alignment represented by \pnql, \pnqc, or \pnqr.

`public int? FontId { get; set; }` [#](#property-fontid)

[RtfLegacyNumbering.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L47)

Font id for the generated number text, represented by \pnf.

`public int? FontSizeHalfPoints { get; set; }` [#](#property-fontsizehalfpoints)

[RtfLegacyNumbering.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L50)

Font size for generated number text in half-points, represented by \pnfs.

`public int? ForegroundColorIndex { get; set; }` [#](#property-foregroundcolorindex)

[RtfLegacyNumbering.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L53)

Foreground color table index for generated number text, represented by \pncf.

`public bool? Bold { get; set; }` [#](#property-bold)

[RtfLegacyNumbering.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L56)

Whether generated number text is bold, represented by \pnb.

`public bool? Italic { get; set; }` [#](#property-italic)

[RtfLegacyNumbering.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L59)

Whether generated number text is italic, represented by \pni.

`public bool? AllCaps { get; set; }` [#](#property-allcaps)

[RtfLegacyNumbering.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L62)

Whether generated number text uses all caps, represented by \pncaps.

`public bool? SmallCaps { get; set; }` [#](#property-smallcaps)

[RtfLegacyNumbering.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L65)

Whether generated number text uses small caps, represented by \pnscaps.

`public RtfUnderlineStyle? UnderlineStyle { get; set; }` [#](#property-underlinestyle)

[RtfLegacyNumbering.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L68)

Underline style for generated number text.

`public bool? Strikethrough { get; set; }` [#](#property-strikethrough)

[RtfLegacyNumbering.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L71)

Whether generated number text is struck through, represented by \pnstrike.

`public string? TextBefore { get; set; }` [#](#property-textbefore)

[RtfLegacyNumbering.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L74)

Text preceding the generated number, represented by the \pntxtb destination.

`public string? TextAfter { get; set; }` [#](#property-textafter)

[RtfLegacyNumbering.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L77)

Text following the generated number, represented by the \pntxta destination.

`public bool HasAnyValue { get; }` [#](#property-hasanyvalue)

[RtfLegacyNumbering.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfLegacyNumbering.cs#L81)

Whether any legacy numbering metadata is present.

<!-- PowerForge markdown artifact sha256:D988AD4B8FA50A100A821EE312E539DF035910C1CF5C37848700230C411282BA -->
