Table of Contents

Class DocxForm

Namespace
PDiffy
Assembly
PDiffy.dll

A form control in the text: a content control or a legacy form field, as its Kind says. Name is a content control's tag or a legacy field's name; a check box's Value is "yes" or "no".

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

Properties

Items

The choices of a drop-down or combo box.

public IReadOnlyList<string> Items { get; init; }

Property Value

IReadOnlyList<string>

Kind

The kind of content control, or of legacy form field.

public required DocxFormKind Kind { get; init; }

Property Value

DocxFormKind

Name

A content control's tag or a legacy form field's name, or null when it has none.

public string? Name { get; init; }

Property Value

string

Title

A content control's title, which Word shows on it.

public string? Title { get; init; }

Property Value

string

Value

What the control holds: the text it shows, "yes" or "no" for a check box, or a legacy drop-down's chosen entry.

public string? Value { get; init; }

Property Value

string