Interface IToggleButton
A .NET WPF toggle button object.
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IToggleButton
Remarks
To create an instance of this interface, first create an IButton instance for a button with toggle behavior, and then return the IToggleButton using the IButton.ToggleButton property.
Properties
ButtonTestObject
Returns the IButton test object this toggle button was accessed from.
Declaration
IButton ButtonTestObject { get; }
Property Value
| Type | Description |
|---|---|
| IButton |
IsChecked
Indicates whether this toggle button is checked.
For Three State toggle button: IsChecked returns true for either a Checked or Indeterminate State.
Declaration
bool IsChecked { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsThreeState
Indicates whether this toggle button is able to display three check states.
Declaration
bool IsThreeState { get; }
Property Value
| Type | Description |
|---|---|
| bool |
State
Returns the toggle button status.
Declaration
CheckedState State { get; }
Property Value
| Type | Description |
|---|---|
| CheckedState | Possible values:
|
Methods
Set(CheckedState)
Sets the value of this toggle button.
Declaration
void Set(CheckedState state)
Parameters
| Type | Name | Description |
|---|---|---|
| CheckedState | state | The value to be assigned to this toggle button. Possible values: CheckedState. |