net90_PropertyGridHelpers.Attributes_LocalizedEnumTextAttribute - dparvin/PropertyGridHelpers GitHub Wiki
Specifies a localized text representation for an Enum field, retrieving the display text from a resource file.
[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field)]
public class LocalizedEnumTextAttribute : LocalizedTextAttribute
parameter | description |
---|---|
resourceKey | The key identifying the localized text in the resource file. |
name | description |
---|---|
LocalizedEnumTextAttribute(…) | Specifies a localized text representation for an Enum field, retrieving the display text from a resource file. |
Initializes a new instance of the LocalizedEnumTextAttribute
class.
public enum Status
{
[LocalizedEnumText("PendingApproval")]
Pending,
[LocalizedEnumText("Approved")]
Approved,
[LocalizedEnumText("Rejected")]
Rejected
}
[LocalizedEnumText("PropertyName_EnumText")]
public int PropertyName { get; set; }
- class LocalizedTextAttribute
- namespace PropertyGridHelpers.Attributes
- assembly PropertyGridHelpers
- LocalizedEnumTextAttribute.cs