Version

GetSelectionStrategy Method

Returns one of the built in SelectionStrategyBase derived classes based on the specified Infragistics.Windows.Controls.SelectionType
Syntax
'Declaration
 
Public Shared Function GetSelectionStrategy( _
   ByVal type As SelectionType, _
   ByVal host As ISelectionHost, _
   ByVal oldStrategy As SelectionStrategyBase _
) As SelectionStrategyBase
public static SelectionStrategyBase GetSelectionStrategy( 
   SelectionType type,
   ISelectionHost host,
   SelectionStrategyBase oldStrategy
)

Parameters

type
An enum indicating the type of selection strategy that should be returned.
host
The ISelectionHost for which the selection strategy is being created
oldStrategy
The previous strategy that was used by the host or null if the host was not associated with a selection strategy

Return Value

If the oldStrategy is of the appropriate type and its SelectionHost is host, that instance will be returned. Otherwise, a new SelectionStrategyBase derived class will be created based on the type and using the specified host as its SelectionHost.
Exceptions
ExceptionDescription
System.ArgumentNullException'host' is a null reference (Nothing in Visual Basic)
Requirements

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