WinSlider 类
表示用于测试 Windows Forms 用户界面 (UI) 的滑块控件。
继承层次结构
System.Object
Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinSlider
命名空间: Microsoft.VisualStudio.TestTools.UITesting.WinControls
程序集: Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Class WinSlider _
Inherits WinControl
public class WinSlider : WinControl
public ref class WinSlider : public WinControl
type WinSlider =
class
inherit WinControl
end
public class WinSlider extends WinControl
WinSlider 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
WinSlider() | 初始化 WinSlider 类的新实例。 | |
WinSlider(UITestControl) | 使用所提供的父控件初始化 WinSlider 类的一个新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
AccessKey | 获取分配给此控件的访问键。 (继承自 WinControl。) | |
BoundingRectangle | 获取此控件的边框。 (继承自 UITestControl。) | |
ClassName | 获取此控件的类名。 (继承自 UITestControl。) | |
Container | 获取或设置此 UITestControl 的容器。 (继承自 UITestControl。) | |
ControlId | 获取分配给此控件的 ID。 (继承自 WinControl。) | |
ControlName | 获取此控件的名称。 (继承自 WinControl。) | |
ControlType | 获取 UI 控件的类型。 (继承自 UITestControl。) | |
Enabled | 获取一个值,该值指示是否启用此控件。 (继承自 UITestControl。) | |
Exists | 获取一个值,该值指示此控件是否存在于用户界面中。 (继承自 UITestControl。) | |
FilterProperties | 获取用于消除控件歧义的属性-值对集合。 (继承自 UITestControl。) | |
FriendlyName | 获取该控件在用户接口中的名称。 (继承自 UITestControl。) | |
HasFocus | 获取指示此控件当前是否在用户界面中有焦点的值。 (继承自 UITestControl。) | |
HelpText | 获取分配给此控件的帮助文本。 (继承自 WinControl。) | |
IsTopParent | 获取指示此控件是否是顶级元素的值。 (继承自 UITestControl。) | |
LineSize | 获取此滑块控件的行大小。 | |
MaximumPosition | 获取此滑块控件上的最大位置。 | |
MinimumPosition | 获取此滑块控件上的最小位置。 | |
Name | 获取此控件的名称。 (继承自 UITestControl。) | |
NativeElement | 获取与此控件对应的本机技术元素。 (继承自 UITestControl。) | |
PageSize | 获取此滑块控件的页大小。 | |
Position | 获取或设置此滑块控件的当前数值位置。 | |
PositionAsString | 获取或设置此滑块控件的当前数值位置的字符串版本。 | |
SearchConfigurations | 获取或设置搜索配置。 (继承自 UITestControl。) | |
SearchProperties | 获取用于标识控件的属性-值对集合。 (继承自 UITestControl。) | |
SearchPropertiesSetExplicitly | 获取指示控件的查找属性是否在用户接口中被用户设定的值。 (继承自 UITestControl。) | |
TechnologyName | 获取或设置实现此控件的技术框架。 (继承自 UITestControl。) | |
TickCount | 获取此滑块控件的刻度位置的数字。 | |
TickPosition | 获取此滑块控件的当前刻度位置。 | |
TickValue | 获取此滑块当前位置的刻度值。 | |
TopParent | 获取此控件的顶级父级。 (继承自 UITestControl。) | |
WindowHandle | 获取此控件的窗口句柄。 (继承自 UITestControl。) | |
WindowTitles | 获取顶层窗口的窗口标题的集合。 (继承自 UITestControl。) |
页首
方法
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。