Skip to content

net90_PropertyGridHelpers.Enums_ResourceUsage

dparvin edited this page Jan 11, 2026 · 1 revision

ResourceUsage enumeration

Specifies the intended usage of a resource path in a localization or UI editing context.

[Flags]
public enum ResourceUsage

Values

name value description
None 0x0 No usage specified. This is an invalid value and should not be passed to any lookup method.
Strings 0x1 Indicates the resource path is used for localized strings (e.g., enum display names, category labels).
Images 0x2 Indicates the resource path is used for image resources (e.g., dropdown icons, UI previews).
Cursors 0x4 Indicates the resource path is used for custom cursors.
Icons 0x8 Indicates the resource path is used for icon resources (e.g., window icons, small UI glyphs).
All 0xF Represents all supported resource usages. Can be used as a fallback or default match.

Remarks

This enum is primarily used by attributes like ResourcePathAttribute and DynamicPathSourceAttribute to differentiate between various kinds of resources (e.g., strings for display, images for dropdowns, cursors for styling, etc.). It supports bitwise flags, allowing multiple usage types to be combined when the resource path is applicable to more than one purpose.

See Also

Clone this wiki locally