Returns a template of the control for an instance of the control ToggleCommandButton, which is connected with current object ToggleCommandButtonAutomationPeer.

Namespace: Elysium.Controls.Automation
Assembly: Elysium (in Elysium.dll) Version: 2.0.976.4 (2.0.976.4)

Syntax

C#
public override Object GetPattern(
	PatternInterface patternInterface
)
Visual Basic
Public Overrides Function GetPattern ( 
	patternInterface As PatternInterface
) As Object

Parameters

patternInterface
Type: System.Windows.Automation.Peers..::..PatternInterface
A value of the enumeration PatternInterface.

Return Value

Type: Object
If the parameter patternInterface has a value Toggle, the method will return "this", otherwise "null" will be returned.

See Also