Class WorkflowElementIconAttribute
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Specifies the icon that should represent the element this attribute is bound to when drawing the workflow.
[AttributeUsage(AttributeTargets.Class)]
public sealed class WorkflowElementIconAttribute : Attribute, _Attribute
- Inheritance
-
WorkflowElementIconAttribute
- Implements
- Inherited Members
Constructors
WorkflowElementIconAttribute(string)
Initializes a new instance of the WorkflowElementIconAttribute class with the name of the icon resource that should represent the workflow element.
public WorkflowElementIconAttribute(string name)
Parameters
name
stringThe name of the icon resource that should represent the workflow element this attribute is bound to.
WorkflowElementIconAttribute(string, string)
Initializes a new instance of the WorkflowElementIconAttribute class with the name of the icon resource that should represent the workflow element, scoped by the namespace of the specified type.
public WorkflowElementIconAttribute(string typeName, string name)
Parameters
typeName
stringThe fully qualified name of the type that will be used to scope the name of the icon resource.
name
stringThe name of the icon resource that should represent the workflow element this attribute is bound to.
WorkflowElementIconAttribute(Type, string)
Initializes a new instance of the WorkflowElementIconAttribute class with the name of the icon resource that should represent the workflow element, scoped by the namespace of the specified type.
public WorkflowElementIconAttribute(Type type, string name)
Parameters
type
TypeThe type that will be used to scope the name of the icon resource.
name
stringThe name of the icon resource that should represent the workflow element this attribute is bound to.
Fields
Default
Specifies the default value for the WorkflowElementIconAttribute. This field is read-only.
public static readonly WorkflowElementIconAttribute Default
Field Value
Properties
Name
Gets the name of the icon resource that should represent the workflow element this attribute is bound to.
public string Name { get; }
Property Value
TypeName
Gets the optional qualified type name that will be used to scope the name of the icon resource.
public string TypeName { get; }