SearchControl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
仅供 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) |
提供类处理,用于接收控件或从此控件派生的任何元素上的键关闭事件。 |