WindowSearchCustomFilter.ApplyFilter Method

Override this method in derived classes to provide specific implementation for the custom filter, by manipulating the search text from the search control and changing the selection as needed.

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

Syntax

'Declaration
Public Overridable Sub ApplyFilter ( _
    ByRef pbstrSearchString As String, _
    ByRef piSelectionStart As Integer, _
    ByRef piSelectionEnd As Integer _
)
public virtual void ApplyFilter(
    ref string pbstrSearchString,
    ref int piSelectionStart,
    ref int piSelectionEnd
)
public:
virtual void ApplyFilter(
    String^% pbstrSearchString, 
    int% piSelectionStart, 
    int% piSelectionEnd
)
abstract ApplyFilter : 
        pbstrSearchString:string byref * 
        piSelectionStart:int byref * 
        piSelectionEnd:int byref -> unit  
override ApplyFilter : 
        pbstrSearchString:string byref * 
        piSelectionStart:int byref * 
        piSelectionEnd:int byref -> unit
public function ApplyFilter(
    pbstrSearchString : String, 
    piSelectionStart : int, 
    piSelectionEnd : int
)

Parameters

  • pbstrSearchString
    Type: System.String%

    The search string from which to obtain the filter selection.

  • piSelectionStart
    Type: System.Int32%

    The location within the search string to start the filter selection.

  • piSelectionEnd
    Type: System.Int32%

    The location within the search string to end the filter selection.

Implements

IVsWindowSearchCustomFilter.ApplyFilter(String%, Int32%, Int32%)

Remarks

The default implementation in this base class selects the entire search string in the control.

.NET Framework Security

See Also

Reference

WindowSearchCustomFilter Class

Microsoft.VisualStudio.PlatformUI Namespace