GetPattern Method
See Also 
SourceCode.Workflow.WizardFramework.Controls.K2DatePicker.ColorPicker Namespace > ColorPickerAutomationPeer Class : GetPattern Method



patternInterface
A value from the System.Windows.Automation.Peers.PatternInterface enumeration.

Glossary Item Box

When overridden in a derived class, gets the control pattern that is associated with the specified System.Windows.Automation.Peers.PatternInterface.

Syntax

Visual Basic (Declaration) 
Public Overrides Function GetPattern( _
   ByVal patternInterface As PatternInterface _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As ColorPickerAutomationPeer
Dim patternInterface As PatternInterface
Dim value As Object
 
value = instance.GetPattern(patternInterface)
C# 
public override object GetPattern( 
   PatternInterface patternInterface
)
C++/CLI 
public:
Object^ GetPattern( 
   PatternInterface patternInterface
) override 

Parameters

patternInterface
A value from the System.Windows.Automation.Peers.PatternInterface enumeration.

Return Value

The object that implements the pattern interface; null if this peer does not support this interface.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also