Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordFieldInfo

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
e96266e685be with working tree changes
Modifiers
sealed

Describes a field discovered in a Word document without mutating the document.

Inheritance

  • object
  • WordFieldInfo

Usage

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

Properties

public int Index { get; internal set; } #

Gets the deterministic index of the field in document scan order.

public WordFieldRepresentation Representation { get; } #

Gets how the field is represented in the Open XML document.

public WordFieldLocationKind LocationKind { get; } #

Gets the owning document part category.

public string PartUri { get; } #

Gets the package part URI that contains the field.

public string InstructionText { get; } #

Gets the original field instruction text.

public string ResultText { get; } #

Gets the current result text stored with the field.

public WordFieldType? FieldType { get; } #

Gets the parsed field type when the instruction is recognized.

public IReadOnlyList<string> Instructions { get; } #

Gets positional instruction tokens parsed from the field instruction text.

public IReadOnlyList<string> Switches { get; } #

Gets field switches parsed from the field instruction text.

public IReadOnlyList<WordFieldFormat> FormatSwitches { get; } #

Gets format switches parsed from the field instruction text.

public bool IsDirty { get; } #

Gets whether the field is marked dirty.

public bool IsLocked { get; } #

Gets whether the field is locked.

public int NestingLevel { get; } #

Gets the complex/simple field nesting level at the field start.

public bool IsInTable { get; } #

Gets whether the field is inside a table.

public bool IsInContentControl { get; } #

Gets whether the field is inside a content control.

public bool IsInTextBox { get; } #

Gets whether the field is inside a text box.

public IReadOnlyList<string> UnsupportedParseDetails { get; } #

Gets parse diagnostics for unsupported or malformed field instructions.

public bool IsParsed { get; } #

Gets whether the field instruction was parsed without diagnostics.