SearchControl 类

定义

仅供 Microsoft 内部使用。 表示 Visual Studio common search 控件。

public ref class SearchControl : System::Windows::Controls::Control, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate
public ref class SearchControl : System::Windows::Controls::Control, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate2
[System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))]
[System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))]
[System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))]
[System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))]
[System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))]
public class SearchControl : System.Windows.Controls.Control, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate
[System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))]
[System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))]
[System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))]
[System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))]
[System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))]
public class SearchControl : System.Windows.Controls.Control, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2
[<System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))>]
[<System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))>]
[<System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))>]
[<System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))>]
[<System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))>]
type SearchControl = class
    inherit Control
    interface IVsSearchControlPrivate
[<System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))>]
[<System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))>]
[<System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))>]
[<System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))>]
[<System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))>]
type SearchControl = class
    inherit Control
    interface IVsSearchControlPrivate
    interface IVsSearchControlPrivate2
Public Class SearchControl
Inherits Control
Implements IVsSearchControlPrivate
Public Class SearchControl
Inherits Control
Implements IVsSearchControlPrivate, IVsSearchControlPrivate2
继承
SearchControl
属性
实现
Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2

构造函数

SearchControl()

创建 Visual Studio common search 控件的新实例。

字段

HasPopupProperty

HasPopup 属性。

IsPopupOpenProperty

IsPopupOpen 属性。

属性

AutomationPeerAttached
DropTarget

获取用于处理控件上的拖放操作的拖放目标。

HasPopup

获取一个标志,该标志指示控件是否具有弹出窗口。

IsPopupOpen

获取一个标志,该标志指示控件是否具有打开的弹出窗口。

方法

FocusEnd()

焦点搜索文本框但不要突出显示所有文本,而不是将光标移动到文本的结尾。

OnApplyTemplate()

每当应用程序代码或内部进程调用 ApplyTemplate 时,都会调用。

OnCreateAutomationPeer()

只要应用程序代码或内部进程创建自动化对等方,就会调用。

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

提供类处理,用于接收对控件或从此控件派生的任何元素的焦点。

OnPreviewDragEnter(DragEventArgs)

提供类处理,用于将对象拖到控件中或从该控件派生的任何元素。

OnPreviewDragLeave(DragEventArgs)

提供类处理,用于将对象拖出控件或从此控件派生的任何元素。

OnPreviewDragOver(DragEventArgs)

提供类处理,用于在控件上拖动对象或从该控件派生的任何元素。

OnPreviewDrop(DragEventArgs)

提供类处理,用于将对象拖放到控件中或从该控件派生的任何元素。

OnPreviewKeyDown(KeyEventArgs)

提供类处理,用于接收控件或从此控件派生的任何元素上的键关闭事件。

显式接口实现

IVsSearchControlPrivate.ApplySearchFilter(UInt32)
IVsSearchControlPrivate.ClickDropdownButton()
IVsSearchControlPrivate.ClickSearchButton()
IVsSearchControlPrivate.ClickSearchOption(UInt32)
IVsSearchControlPrivate.DeleteMRUItem(UInt32)
IVsSearchControlPrivate.GetSearchBoxSelection(Int32, Int32)
IVsSearchControlPrivate.SelectMRUItem(UInt32)
IVsSearchControlPrivate.SetSearchBoxSelection(Int32, Int32)
IVsSearchControlPrivate.SetSearchBoxText(String)
IVsSearchControlPrivate2.RestartSearch()
IVsSearchControlPrivate2.SetSelectionDelegated(Boolean)

适用于