Table of Contents

Interface IToggleButton

Namespace
HP.LFT.SDK.WPF
Assembly
HP.LFT.SDK.dll

A .NET WPF toggle button object.

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.

IButton ButtonTestObject { get; }

Property Value

IButton

IsChecked

Indicates whether this toggle button is checked.

For Three State toggle button: IsChecked returns true for either a Checked or Indeterminate State.

bool IsChecked { get; }

Property Value

bool

IsThreeState

Indicates whether this toggle button is able to display three check states.

bool IsThreeState { get; }

Property Value

bool

State

Returns the toggle button status.

CheckedState State { get; }

Property Value

CheckedState

Possible values:

  • Checked
  • Unchecked
  • Indeterminate

Methods

Set(CheckedState)

Sets the value of this toggle button.

void Set(CheckedState state)

Parameters

state CheckedState

The value to be assigned to this toggle button. Possible values: CheckedState.