Click or drag to resize
KaxToolBarButton Constructor (String, Boolean, String)
Initializes a new instance of the KaxToolBarButton class with the specified text, checked state and group name data.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public KaxToolBarButton(
	string text,
	bool isChecked,
	string group
)

Parameters

text
Type: SystemString
The text of the button. The Text property is set to the value of this parameter.
isChecked
Type: SystemBoolean
The checked state of the button. The Checked property is set to the value of this parameter.
group
Type: SystemString
The group to which the button belongs. The Group property is set to the value of this parameter.
Remarks

Use this constructor to create and initialize a new instance of the KaxToolBarButton class using the specified text, checked state and group name.

When this constructor used, the CheckOnClick property of the created KaxToolBarButton is automatically set to true.

Examples
The following example demonstrates how to add items to KaxToolBar controls.
[New Example]
KaxToolBarButton alighLeftButton = new KaxToolBarButton("Left", false, "Alignment");
alighLeftButton.CommandName = "AlignLeft";
alighLeftButton.ImageUrl = "~/ToolBarImages/AlignLeft.gif";
KaxToolBar1.Items.Add(alighLeftButton);

KaxToolBarButton alignCenterButton = new KaxToolBarButton("Center", false, "Alignment");
alignCenterButton.CommandName = "AlignCenter";
alignCenterButton.ImageUrl = "~/ToolBarImages/AlignCenter.gif";
KaxToolBar1.Items.Add(alignCenterButton);

KaxToolBarButton alignRightButton = new KaxToolBarButton("Right", false, "Alignment");
alignRightButton.CommandName = "AlignRight";
alignRightButton.ImageUrl = "~/ToolBarImages/AlignRight.gif";
KaxToolBar1.Items.Add(alignRightButton);
[New Example]
Dim alighLeftButton As KaxToolBarButton = New KaxToolBarButton("Left", False, "Alignment")
alighLeftButton.CommandName = "AlignLeft"
alighLeftButton.ImageUrl = "~/ToolBarImages/AlignLeft.gif"
KaxToolBar1.Items.Add(alighLeftButton)

Dim alignCenterButton As KaxToolBarButton = New KaxToolBarButton("Center", False, "Alignment")
alignCenterButton.CommandName = "AlignCenter"
alignCenterButton.ImageUrl = "~/ToolBarImages/AlignCenter.gif"
KaxToolBar1.Items.Add(alignCenterButton)

Dim alignRightButton As KaxToolBarButton = New KaxToolBarButton("Right", False, "Alignment")
alignRightButton.CommandName = "AlignRight"
alignRightButton.ImageUrl = "~/ToolBarImages/AlignRight.gif"
KaxToolBar1.Items.Add(alignRightButton)
See Also