# WordContentControlFormKey

Selects which content-control metadata should be used as the form field key.

Enum 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[WordContentControlForm.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L10)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Selects which content-control metadata should be used as the form field key.

## Inheritance

- Enum
- WordContentControlFormKey

## Usage

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

- Field [WordContentControlFormKey.Alias](/api/word/officeimo-word-wordcontentcontrolformkey/#field-alias)
- Field [WordContentControlFormKey.AliasThenTag](/api/word/officeimo-word-wordcontentcontrolformkey/#field-aliasthentag)
- Field [WordContentControlFormKey.Tag](/api/word/officeimo-word-wordcontentcontrolformkey/#field-tag)
- Field [WordContentControlFormKey.TagThenAlias](/api/word/officeimo-word-wordcontentcontrolformkey/#field-tagthenalias)

### Accepted by parameters 3

- Method [WordDocument.ExtractContentControlValues](/api/word/officeimo-word-worddocument/#method-extractcontentcontrolvalues-officeimo-word-wordcontentcontrolformkey) parameter `keyMode`
- Method [WordDocument.FillContentControlValues](/api/word/officeimo-word-worddocument/#method-fillcontentcontrolvalues-collections-generic-ireadonlydictionary-system-string-system-object-officeimo-word-wordcontentcontrolformkey) parameter `keyMode`
- Method [WordDocument.ValidateContentControlValues](/api/word/officeimo-word-worddocument/#method-validatecontentcontrolvalues-collections-generic-ireadonlydictionary-system-string-system-object-officeimo-word-wordcontentcontrolformkey-boolean-boolean) parameter `keyMode`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const WordContentControlFormKey Tag` [#](#field-tag)

[WordContentControlForm.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L12)

Use the content-control tag.

Value: `0`

`public const WordContentControlFormKey Alias` [#](#field-alias)

[WordContentControlForm.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L14)

Use the content-control alias.

Value: `1`

`public const WordContentControlFormKey TagThenAlias` [#](#field-tagthenalias)

[WordContentControlForm.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L16)

Use the tag when present, otherwise the alias.

Value: `2`

`public const WordContentControlFormKey AliasThenTag` [#](#field-aliasthentag)

[WordContentControlForm.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L18)

Use the alias when present, otherwise the tag.

Value: `3`

<!-- PowerForge markdown artifact sha256:8515443C6A9DE1B0A5865E9235761BE7E2427C9CAF9B99638AF15B6B8800D481 -->
