net472_PropertyGridHelpers.Attributes_FileExtensionAttribute - dparvin/PropertyGridHelpers GitHub Wiki
Specifies a property containing the file extension to use when resolving resource names for an ImageTextUIEditor
.
[AttributeUsage(AttributeTargets.Property)]
public class FileExtensionAttribute : Attribute
name | description |
---|---|
FileExtensionAttribute(…) | Gets the name of the property containing the file extension. |
static Get(…) | Retrieves the FileExtensionAttribute applied to the property described by the given context, if any. |
PropertyName { get; } | Gets the name of the property containing the file extension. |
static Exists(…) | Checks whether a FileExtensionAttribute exists on the current property within the given context. |
This attribute is intended for scenarios where an image resource is dynamically constructed from an enum value plus a file extension. It works together with ResourcePathAttribute
, DynamicPathSourceAttribute
, and EnumImageAttribute
to build a complete resource path for images or icons.
- namespace PropertyGridHelpers.Attributes
- assembly PropertyGridHelpers
- FileExtensionAttribute.cs