次の方法で共有


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

'宣言
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
)

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