---
order: 27
title:
  zh-CN: 枚举选择器
  en-US: EnumSelect
---

## zh-CN

对于枚举类型，可使用更便捷的枚举选择器 `EnumSelect`。

当枚举类型有 [`FlagsAttribute` 特性](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum?WT.mc_id=DT-MVP-5003987#enumeration-types-as-bit-flags) 时，可使用 `@bind-Value` 绑定组合值。

## en-US

You can use `EnumSelect` from enum types. 

When the enum type have the [`FlagsAttribute`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum?WT.mc_id=DT-MVP-5003987#enumeration-types-as-bit-flags), you can use `@bind-Value` to bind multiple selected values.
