net472_PropertyGridHelpers.Attributes_FileExtensionAttribute - dparvin/PropertyGridHelpers GitHub Wiki

FileExtensionAttribute class

File Extension Attribute for modifying the way that resources are loaded into the ImageTextUIEditor class.

[AttributeUsage(AttributeTargets.Property)]
public class FileExtensionAttribute : Attribute

Public Members

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.

Remarks

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.

See Also

⚠️ **GitHub.com Fallback** ⚠️