# EnumExtensions Class

Class EnumExtensions.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- EnumExtensions

## Syntax

```csharp
public static class EnumExtensions
```

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `EnumAsKeyValuePair(Type enumType, Func<string, string> translationFunction)` | `IEnumerable<object>` | Converts Enum to IEnumerable of Value/Text. |
| `EnumAsKeyValuePair(Type enumType, Func<Enum, string> valueTranslationFunction, Func<string, string> textTranslationFunction)` | `IEnumerable<object>` | Converts Enum to IEnumerable of Value/Text. |
| `GetAutoCompleteValue(AutoCompleteType typeValue)` | `string` | Converts the autocomplete type enum value to the expected autocomplete attribute value. Returns: The autocomplete attribute string value. |
| `GetDisplayDescription(Enum enumValue, Func<string, string> translationFunction)` | `string` | Gets the display text for an enum value. Resolution order: GetDescription, then GetName, then Description, then ToString. |
| `GetDisplayDescription(Enum enumValue, Func<Enum, string> valueTranslationFunction, Func<string, string> textTranslationFunction)` | `string` | Gets the display text for an enum value. Resolution order: GetDescription, then GetName, then Description, then ToString. |

