Skybound Rebar

RebarButton Constructor (String, String, Image, Boolean, RebarButtonType, Boolean)

Initializes a new instance of a RebarButton that is a toggle or group button.

[Visual Basic]
Overloads Public Sub New( _
   ByVal name As String, _
   ByVal text As String, _
   ByVal image As Image, _
   ByVal enabled As Boolean, _
   ByVal buttonType As RebarButtonType, _
   ByVal isChecked As Boolean _
)
[C#]
public RebarButton(
   string name,
   string text,
   Image image,
   bool enabled,
   RebarButtonType buttonType,
   bool isChecked
);

Parameters

name
The name used to identify this button in code.
text
The text displayed on the button.
image
The Image displayed on the button.
enabled
Whether the button is enabled.
buttonType
A RebarButtonType value that specifies the type of button.
isChecked
Whether this button is initially checked.

Remarks

This overload has the necessary parameters for creating a rebar button that is a toggle or group button.

Specifying a null reference (Nothing in Visual Basic) for image will cause the TextVisible property of the new button to default to true.

Exceptions

Exception Type Condition
InvalidEnumArgumentException The buttonType is not one of the RebarButtonType values.

See Also

RebarButton Class | Skybound.Rebar Namespace | RebarButton Constructor Overload List