net472_PropertyGridHelpers.Attributes_FileExtensionAttribute - dparvin/PropertyGridHelpers GitHub Wiki

FileExtensionAttribute class

Specifies a property containing the file extension to use when resolving resource names for an ImageTextUIEditor.

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

Public Members

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.

Remarks

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.

See Also

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