# WordFieldInfo

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`e96266e685be` with working tree changes

**Source**

[WordFieldInfo.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L70)

**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

- Method [WordDocument.InspectFields](/api/word/officeimo-word-worddocument/#method-inspectfields)

Filter members 

Show inherited

## 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 int Index { get; internal set; }` [#](#property-index)

[WordFieldInfo.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L70)

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

`public WordFieldRepresentation Representation { get; }` [#](#property-representation)

[WordFieldInfo.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L73)

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

`public WordFieldLocationKind LocationKind { get; }` [#](#property-locationkind)

[WordFieldInfo.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L76)

Gets the owning document part category.

`public string PartUri { get; }` [#](#property-parturi)

[WordFieldInfo.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L79)

Gets the package part URI that contains the field.

`public string InstructionText { get; }` [#](#property-instructiontext)

[WordFieldInfo.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L82)

Gets the original field instruction text.

`public string ResultText { get; }` [#](#property-resulttext)

[WordFieldInfo.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L85)

Gets the current result text stored with the field.

`public WordFieldType? FieldType { get; }` [#](#property-fieldtype)

[WordFieldInfo.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L88)

Gets the parsed field type when the instruction is recognized.

`public IReadOnlyList<string> Instructions { get; }` [#](#property-instructions)

[WordFieldInfo.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L91)

Gets positional instruction tokens parsed from the field instruction text.

`public IReadOnlyList<string> Switches { get; }` [#](#property-switches)

[WordFieldInfo.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L94)

Gets field switches parsed from the field instruction text.

`public IReadOnlyList<WordFieldFormat> FormatSwitches { get; }` [#](#property-formatswitches)

[WordFieldInfo.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L97)

Gets format switches parsed from the field instruction text.

`public bool IsDirty { get; }` [#](#property-isdirty)

[WordFieldInfo.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L100)

Gets whether the field is marked dirty.

`public bool IsLocked { get; }` [#](#property-islocked)

[WordFieldInfo.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L103)

Gets whether the field is locked.

`public int NestingLevel { get; }` [#](#property-nestinglevel)

[WordFieldInfo.cs:106](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L106)

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

`public bool IsInTable { get; }` [#](#property-isintable)

[WordFieldInfo.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L109)

Gets whether the field is inside a table.

`public bool IsInContentControl { get; }` [#](#property-isincontentcontrol)

[WordFieldInfo.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L112)

Gets whether the field is inside a content control.

`public bool IsInTextBox { get; }` [#](#property-isintextbox)

[WordFieldInfo.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L115)

Gets whether the field is inside a text box.

`public IReadOnlyList<string> UnsupportedParseDetails { get; }` [#](#property-unsupportedparsedetails)

[WordFieldInfo.cs:118](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L118)

Gets parse diagnostics for unsupported or malformed field instructions.

`public bool IsParsed { get; }` [#](#property-isparsed)

[WordFieldInfo.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Word/WordFieldInfo.cs#L121)

Gets whether the field instruction was parsed without diagnostics.

<!-- PowerForge markdown artifact sha256:118C0CCD8A18F98872B22600BB18DEE3BE32A248BC07EEC91D5BAB9A8B4FA080 -->
