Version

GetBehavior<TBehavior>() Method

Looks for the behavior of provided type in the collection. If found a reference to the behavior is returned, otherwise null is returned.
Syntax
'Declaration
 
Public Overloads Function GetBehavior(Of TBehavior As GridBehavior)() As TBehavior
public TBehavior GetBehavior<TBehavior>()
where TBehavior: GridBehavior

Type Parameters

TBehavior
Type of the behavior to seek.

Return Value

Reference to an instance of requested behavior or null if the behavior is not present in the collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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