Freigeben über


SearchOptionsItemTemplateSelector.SelectTemplate Method

Obtains the template for the specified search option item.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Overrides Function SelectTemplate ( _
    item As Object, _
    container As DependencyObject _
) As DataTemplate
public override DataTemplate SelectTemplate(
    Object item,
    DependencyObject container
)
public:
virtual DataTemplate^ SelectTemplate(
    Object^ item, 
    DependencyObject^ container
) override
abstract SelectTemplate : 
        item:Object * 
        container:DependencyObject -> DataTemplate  
override SelectTemplate : 
        item:Object * 
        container:DependencyObject -> DataTemplate
public override function SelectTemplate(
    item : Object, 
    container : DependencyObject
) : DataTemplate

Parameters

  • item
    Type: Object

    The item to get the template for.

  • container
    Type: DependencyObject

    The option button containing the item.

Return Value

Type: DataTemplate
Returns the template of the item.

.NET Framework Security

See Also

Reference

SearchOptionsItemTemplateSelector Class

Microsoft.VisualStudio.PlatformUI Namespace