Gets or sets the command name associated with the Item passed to the ItemClick and ItemSelected events of the component.

Namespace:  C1.Web.UI.Controls.C1ToolBar
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
[C1CategoryAttribute("Category.Behavior")]
[LayoutAttribute(LayoutType.Behavior)]
[DefaultValueAttribute("")]
[JsonAttribute(true, true, "")]
public virtual string CommandName { get; set; }
Visual Basic (Declaration)
<C1CategoryAttribute("Category.Behavior")> _
<LayoutAttribute(LayoutType.Behavior)> _
<DefaultValueAttribute("")> _
<JsonAttribute(True, True, "")> _
Public Overridable Property CommandName As String
	Get
	Set

Remarks

When you have multiple C1ToolBarButton items in the control use the CommandName property to specify the command name associated with each C1ToolBarButton item. You can set the CommandName property with any string that identifies the command to perform. You can then programmatically determine the command name of the C1ToolBarButton item and perform the appropriate actions.

See Also