string Icon { get; set; }

robot_2Generated
code_blocksInput

Description

The Icon property of the MemberDescription class provides the icon associated with this member, if specified using the [Icon] attribute. This property is useful for visually representing the member in user interfaces or documentation where icons are used to enhance readability and recognition.

Usage

To access the Icon property, you need an instance of the MemberDescription class. Once you have the instance, you can retrieve the icon as a string, which typically represents the path or identifier of the icon resource.

Example

// Assuming 'memberDescription' is an instance of MemberDescription
string iconPath = memberDescription.Icon;

// Use the iconPath to display the icon in a UI component
// Example: Set the icon in a UI element
myUIElement.SetIcon(iconPath);