Class CommandDescriptorOptionsAttribute
This is the "default" option implementation of that menu item for easy menu item creation.
If a menu item has custom parameters, you need to set the ParametersType option to your custom serializedparam
class type on the Command attribute against the menu item instance class
Inheritance
CommandDescriptorOptionsAttribute
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class CommandDescriptorOptionsAttribute : Attribute, ICommandDescriptor
Constructors
CommandDescriptorOptionsAttribute(Command, Type)
Declaration
public CommandDescriptorOptionsAttribute(Command type, Type paramType = null)
Parameters
CommandDescriptorOptionsAttribute(string, string, ImageType, string, ImageType, string, Type)
Declaration
public CommandDescriptorOptionsAttribute(string uniqueCommandID, string title, ImageType customIconID, string description, ImageType customOverlayIconID = ImageType.None, string tooltip = "", Type paramType = null)
Parameters
CommandDescriptorOptionsAttribute(string, string, ImageType, string, ImageType, string, Type, string)
Declaration
public CommandDescriptorOptionsAttribute(string uniqueCommandID, string title, ImageType customIconID, string description, ImageType customOverlayIconID, string tooltip, Type paramType, string helpURL)
Parameters
CommandDescriptorOptionsAttribute(string, string, string, string, string, string, Type)
Declaration
public CommandDescriptorOptionsAttribute(string uniqueCommandID, string title, string customIconID, string description, string customOverlayIconID = "", string tooltip = "", Type paramType = null)
Parameters
CommandDescriptorOptionsAttribute(string, string, string, string, string, string, Type, string)
Declaration
public CommandDescriptorOptionsAttribute(string uniqueCommandID, string title, string customIconID, string description, string customOverlayIconID, string tooltip, Type paramType, string helpURL)
Parameters
CommandDescriptorOptionsAttribute(Type, string, Type)
Declaration
public CommandDescriptorOptionsAttribute(Type typeHoldingCommandFieldOptions, string commandID, Type paramType = null)
Parameters
Type |
Name |
Description |
Type |
typeHoldingCommandFieldOptions |
|
string |
commandID |
|
Type |
paramType |
|
Properties
Description
A user friendly description of this command
Declaration
public string Description { get; }
Property Value
HelpURL
An optional url for help documentation around this commands function
Declaration
public string HelpURL { get; }
Property Value
IconID
Declaration
public Guid IconID { get; }
Property Value
OverlayIconID
On some clients another image can be overlayed on the bottom right of the main icon (for indicating add, remove,
etc)
This optional overlay image can be specified here, either a ImageType or
ImageID
Declaration
public Guid? OverlayIconID { get; }
Property Value
Parameter
Declaration
public string Parameter { get; }
Property Value
ParameterType
Declaration
public Type ParameterType { get; }
Property Value
Title
The title of this command
Declaration
public string Title { get; set; }
Property Value
A user friendly tool tip for this command functionality
Declaration
public string ToolTip { get; }
Property Value
Type
A globally unique id to identify this command in uniquel in the main menu. Comes from
Type if it came from the standard set, but can be any id for custom commands, or
Guid.Empty otherwise
Declaration
public Guid Type { get; }
Property Value
Methods
GetDescriptors()
Declaration
public static IEnumerable<(string UserFriendlyName, Guid ID)> GetDescriptors()
Returns
GetDescriptors(Command)
Declaration
public static IEnumerable<ICommandDescriptor> GetDescriptors(Command type)
Parameters
Returns
GetDescriptors(Guid)
Declaration
public static IEnumerable<ICommandDescriptor> GetDescriptors(Guid type)
Parameters
Type |
Name |
Description |
Guid |
type |
|
Returns
Implements
Extension Methods