ToggleButton.ToString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the string representation of a ToggleButton object.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Public Overrides Function ToString As String
public override string ToString()

Return Value

Type: System..::.String
String representation of a ToggleButton object.

Remarks

The ToString method returns a string that contains the Content and the value of the IsChecked property.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

ToggleButton Class

System.Windows.Controls.Primitives Namespace

CheckBox

RadioButton