-
Notifications
You must be signed in to change notification settings - Fork 1
net472_PropertyGridHelpers.Attributes_FileExtensionAttribute
dparvin edited this page Jul 5, 2025
·
14 revisions
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