Skybound Rebar

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

Initializes a new instance of a RebarButton and specifies a name, text, an image, whether the button is initially enabled and the type for the new 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 _
)
[C#]
public RebarButton(
   string name,
   string text,
   Image image,
   bool enabled,
   RebarButtonType buttonType
);

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.

Remarks

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