WinDateTimePicker 类

表示 Windows 窗体用户界面 (UI) 中用于选择日期或时间的控件。

继承层次结构

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinDateTimePicker

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

语法

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

WinDateTimePicker 类型公开以下成员。

构造函数

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

页首

属性

  名称 说明
公共属性 AccessibleDescription 获取此 WinControl 基础 IAccessible 的说明。 (继承自 WinControl。)
公共属性 AccessKey 获取分配给此控件的访问键。 (继承自 WinControl。)
公共属性 BoundingRectangle (继承自 UITestControl。)
公共属性 Calendar 获取此日期时间选择器控件的日历部分。
公共属性 Checked 获取或设置一个值,该值指示是否已选中此日期时间选择器控件。
公共属性 ClassName (继承自 UITestControl。)
公共属性 Container (继承自 UITestControl。)
公共属性 ControlId 获取分配给此控件的 ID。 (继承自 WinControl。)
公共属性 ControlName 获取此控件的名称。 (继承自 WinControl。)
公共属性 ControlType (继承自 UITestControl。)
公共属性 DateTime 获取或设置此日期时间选择器控件的选定日期和时间。
公共属性 DateTimeAsString 获取或设置此日期时间选择器控件的选定日期和时间的字符串形式。
公共属性 Enabled (继承自 UITestControl。)
公共属性 Exists (继承自 UITestControl。)
公共属性 FilterProperties (继承自 UITestControl。)
公共属性 Format 获取此日期时间选择器控件的格式。
公共属性 FriendlyName (继承自 UITestControl。)
公共属性 HasCheckBox 获取或设置一个值,该值指示此日期时间选择器控件是否具有复选框组件。
公共属性 HasDropDownButton 获取或设置一个值,该值指示此日期时间选择器控件是否具有下拉按钮组件。
公共属性 HasFocus (继承自 UITestControl。)
公共属性 HasSpinner 获取或设置一个值,该值指示此日期时间选择器控件是否具有微调框组件。
公共属性 Height (继承自 UITestControl。)
公共属性 HelpText 获取分配给此控件的帮助文本。 (继承自 WinControl。)
公共属性 IsTopParent (继承自 UITestControl。)
公共属性 Left (继承自 UITestControl。)
公共属性 Name (继承自 UITestControl。)
公共属性 NativeElement (继承自 UITestControl。)
公共属性 SearchConfigurations (继承自 UITestControl。)
公共属性 SearchProperties (继承自 UITestControl。)
受保护的属性 SearchPropertiesSetExplicitly (继承自 UITestControl。)
公共属性 ShowCalendar 获取或设置一个值,该值表示其日期选择控件的日历组件是否可见。
公共属性 State (继承自 UITestControl。)
公共属性 TechnologyName (继承自 UITestControl。)
公共属性 ToolTipText (继承自 WinControl。)
公共属性 Top (继承自 UITestControl。)
公共属性 TopParent (继承自 UITestControl。)
公共属性 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。)
公共方法 GetHashCode (继承自 UITestControl。)
公共方法 GetParent (继承自 UITestControl。)
公共方法 GetProperty (继承自 UITestControl。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 GetUITestControlsForSearch 获取此控件中的子控件数组。 (继承自 WinControl。)
受保护的方法 GetValidSearchProperties 获取搜索字典属性有效的控件。 (继承自 WinControl。)
受保护的方法 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.WinControls 命名空间

WinDateTimePicker.PropertyNames

WinControl