Table of Contents

Class DocxField

Namespace
PDiffy
Assembly
PDiffy.dll

A field: its code, such as "PAGE" or "TOC \o "1-3"", and its result, the text Word last showed for it. The result is also part of the paragraph's text, unless the field is nested in another field's code; then the outer code shows the field's own code in braces instead.

public sealed record DocxField : DocxInline, IEquatable<DocxInline>, IEquatable<DocxField>
Inheritance
DocxField
Implements
Inherited Members

Properties

Code

The field's code with each stretch of white space made one space and the ends trimmed. A field nested in it shows as its own code in braces, so { IF { PAGE } = 1 ... } reads "IF {PAGE} = 1 ...".

public required string Code { get; init; }

Property Value

string

Result

The text Word last showed for the field, or empty when it showed none.

public required string Result { get; init; }

Property Value

string