WpfComboBox 类

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

表示用于测试 Windows Presentation Foundation (WPF) 应用程序用户界面 (UI) 的组合框控件。

继承层次结构

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfControl
      Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfComboBox

命名空间:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
<CLSCompliantAttribute(True)> _
Public Class WpfComboBox _
    Inherits WpfControl
[CLSCompliantAttribute(true)]
public class WpfComboBox : WpfControl
[CLSCompliantAttribute(true)]
public ref class WpfComboBox : public WpfControl
[<CLSCompliantAttribute(true)>]
type WpfComboBox =  
    class 
        inherit WpfControl 
    end
public class WpfComboBox extends WpfControl

WpfComboBox 类型公开以下成员。

构造函数

  名称 说明
公共方法 WpfComboBox() 初始化 WpfComboBox 类的新实例。
公共方法 WpfComboBox(UITestControl) 使用所提供的父控件初始化 WpfComboBox 类的新实例。

页首

属性

  名称 说明
公共属性 AcceleratorKey (继承自 WpfControl。)
公共属性 AccessKey (继承自 WpfControl。)
公共属性 AutomationId (继承自 WpfControl。)
公共属性 BoundingRectangle (继承自 UITestControl。)
公共属性 ClassName (继承自 UITestControl。)
公共属性 Container (继承自 UITestControl。)
公共属性 ControlType (继承自 UITestControl。)
公共属性 EditableItem 获取或设置此组合框可编辑部分的内容。
公共属性 Enabled (继承自 UITestControl。)
公共属性 Exists (继承自 UITestControl。)
公共属性 Expanded 获取或设置一个值,该值指示此组合框的列表部分是否已展开。
公共属性 FilterProperties (继承自 UITestControl。)
公共属性 Font (继承自 WpfControl。)
公共属性 FrameworkId (继承自 WpfControl。)
公共属性 FriendlyName (继承自 UITestControl。)
公共属性 HasFocus (继承自 UITestControl。)
公共属性 Height (继承自 UITestControl。)
公共属性 HelpText (继承自 WpfControl。)
公共属性 HorizontalScrollBar 获取此组合框控件的水平滚动条。
公共属性 IsEditable 获取一个值,该值指示此组合框是否可编辑。
公共属性 IsTopParent (继承自 UITestControl。)
公共属性 Items 获取此组合框列表部分的项集合。
公共属性 ItemStatus (继承自 WpfControl。)
公共属性 LabeledBy (继承自 WpfControl。)
公共属性 Left (继承自 UITestControl。)
公共属性 Name (继承自 UITestControl。)
公共属性 NativeElement (继承自 UITestControl。)
公共属性 SearchConfigurations (继承自 UITestControl。)
公共属性 SearchProperties (继承自 UITestControl。)
受保护的属性 SearchPropertiesSetExplicitly (继承自 UITestControl。)
公共属性 SelectedIndex 获取或设置此组合框列表部分的选定项的索引。
公共属性 SelectedItem 获取或设置此组合框列表部分的选定项的内容。
公共属性 State (继承自 UITestControl。)
公共属性 TechnologyName (继承自 UITestControl。)
公共属性 ToolTipText (继承自 WpfControl。)
公共属性 Top (继承自 UITestControl。)
公共属性 TopParent (继承自 UITestControl。)
公共属性 VerticalScrollBar 获取此组合框列表部分的垂直滚动条。
公共属性 Width (继承自 UITestControl。)
公共属性 WindowHandle (继承自 UITestControl。)
公共属性 WindowTitles (继承自 UITestControl。)

页首

方法

  名称 说明
公共方法 CaptureImage (继承自 UITestControl。)
公共方法 CopyFrom (继承自 UITestControl。)
公共方法 DrawHighlight (继承自 UITestControl。)
公共方法 EnsureClickable() (继承自 UITestControl。)
公共方法 EnsureClickable(Point) (继承自 UITestControl。)
公共方法 Equals (继承自 UITestControl。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 Find (继承自 UITestControl。)
公共方法 FindMatchingControls (继承自 UITestControl。)
公共方法 GetChildren (继承自 UITestControl。)
公共方法 GetClickablePoint (继承自 UITestControl。)
公共方法 GetContent 获取控件的内容。
公共方法 GetHashCode (继承自 UITestControl。)
公共方法 GetParent (继承自 UITestControl。)
公共方法 GetProperty (继承自 UITestControl。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 GetUITestControlsForSearch (继承自 WpfControl。)
受保护的方法 GetValidSearchProperties (继承自 WpfControl。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetFocus (继承自 UITestControl。)
公共方法 SetProperty (继承自 UITestControl。)
公共方法 ToString (继承自 UITestControl。)
公共方法 TryFind (继承自 UITestControl。)
公共方法 TryGetClickablePoint(Point%) (继承自 UITestControl。)
公共方法 WaitForControlCondition(Predicate<UITestControl>) (继承自 UITestControl。)
公共方法 WaitForControlCondition(Predicate<UITestControl>, Int32) (继承自 UITestControl。)
公共方法 WaitForControlEnabled() (继承自 UITestControl。)
公共方法 WaitForControlEnabled(Int32) (继承自 UITestControl。)
公共方法 WaitForControlExist() (继承自 UITestControl。)
公共方法 WaitForControlExist(Int32) (继承自 UITestControl。)
公共方法 WaitForControlNotExist() (继承自 UITestControl。)
公共方法 WaitForControlNotExist(Int32) (继承自 UITestControl。)
公共方法 WaitForControlPropertyEqual(String, Object) (继承自 UITestControl。)
公共方法 WaitForControlPropertyEqual(String, Object, Int32) (继承自 UITestControl。)
公共方法 WaitForControlPropertyNotEqual(String, Object) (继承自 UITestControl。)
公共方法 WaitForControlPropertyNotEqual(String, Object, Int32) (继承自 UITestControl。)
公共方法 WaitForControlReady() (继承自 UITestControl。)
公共方法 WaitForControlReady(Int32) (继承自 UITestControl。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.TestTools.UITesting.WpfControls 命名空间

WpfComboBox.PropertyNames

WpfControl