# EntityTokenShape

Token shapes a recognizer can request.

Enum 

`OfficeIMO.Entities`

**Namespace**

`OfficeIMO.Entities`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[EntityTokenShape.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L7)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

**Attributes**

`Flags`

Token shapes a recognizer can request.

## Inheritance

- Enum
- EntityTokenShape

## Usage

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

- Property [EntityToken.Shape](/api/core/officeimo-entities-entitytoken/#property-shape)
- Field [EntityTokenShape.AlphaNumericRun](/api/core/officeimo-entities-entitytokenshape/#field-alphanumericrun)
- Field [EntityTokenShape.At](/api/core/officeimo-entities-entitytokenshape/#field-at)
- Field [EntityTokenShape.DigitRun](/api/core/officeimo-entities-entitytokenshape/#field-digitrun)
- Field [EntityTokenShape.None](/api/core/officeimo-entities-entitytokenshape/#field-none)
- Field [EntityTokenShape.Scheme](/api/core/officeimo-entities-entitytokenshape/#field-scheme)
- Property [IEntityRecognizer.Shapes](/api/core/officeimo-entities-ientityrecognizer/#property-shapes)

### Accepted by parameters 1

- Method [EntityRecognitionContext.GetTokens](/api/core/officeimo-entities-entityrecognitioncontext/#method-gettokens-officeimo-entities-entitytokenshape) parameter `shapes`

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 EntityTokenShape None` [#](#field-none)

[EntityTokenShape.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L9)

No token shapes.

Value: `0`

`public const EntityTokenShape DigitRun` [#](#field-digitrun)

[EntityTokenShape.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L11)

A maximal ASCII digit run, including single separators.

Value: `1`

`public const EntityTokenShape AlphaNumericRun` [#](#field-alphanumericrun)

[EntityTokenShape.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L13)

An ASCII alphanumeric atom at a word boundary.

Value: `2`

`public const EntityTokenShape At` [#](#field-at)

[EntityTokenShape.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L15)

An at-sign anchor for email addresses.

Value: `4`

`public const EntityTokenShape Scheme` [#](#field-scheme)

[EntityTokenShape.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityTokenShape.cs#L17)

A potentially supported URL scheme or www prefix.

Value: `8`

<!-- PowerForge markdown artifact sha256:B45BD07ABEF3450859B06D9E812C303CBF1665008644D99A4991797054ECB069 -->
