net472_PropertyGridHelpers.Attributes_FileExtensionAttribute - dparvin/PropertyGridHelpers GitHub Wiki
File Extension Attribute for modifying the way that resources are loaded into the ImageTextUIEditor
class.
[AttributeUsage(AttributeTargets.Property)]
public class FileExtensionAttribute : Attribute
name | description |
---|---|
FileExtensionAttribute(…) | Initializes a new instance of the FileExtensionAttribute class. |
static Get(…) | Gets the File Extension Attribute from the enum value. |
PropertyName { get; } | Gets the name of the property. |
static Exists(…) | Exists the specified value. |
When this is used on a property to point to an enum that is used to get an image, then this attribute points to a property that contains the file extension. This will work in conjunction with the ResourcePathAttribute
or the DynamicPathSourceAttribute
and the EnumImageAttribute
to form the overall name of the resource to load.
- namespace PropertyGridHelpers.Attributes
- assembly PropertyGridHelpers
- FileExtensionAttribute.cs