WinEdit 類別
表示用以測試 Windows Form 使用者介面 (UI) 的編輯控制項。
繼承階層架構
System.Object
Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinEdit
命名空間: Microsoft.VisualStudio.TestTools.UITesting.WinControls
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
<CLSCompliantAttribute(True)> _
Public Class WinEdit _
Inherits WinControl
[CLSCompliantAttribute(true)]
public class WinEdit : WinControl
[CLSCompliantAttribute(true)]
public ref class WinEdit : public WinControl
[<CLSCompliantAttribute(true)>]
type WinEdit =
class
inherit WinControl
end
public class WinEdit extends WinControl
WinEdit 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
WinEdit() | 初始化 WinEdit 類別的新執行個體。 |
![]() |
WinEdit(UITestControl) | 使用提供的父控制項,初始化 WinEdit 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
AccessibleDescription | 取得這 WinControl 基礎 IAccessible 的描述。 (繼承自 WinControl)。 |
![]() |
AccessKey | 取得指派給此控制項的便捷鍵。 (繼承自 WinControl)。 |
![]() |
BoundingRectangle | 取得這個控制項的周框。 (繼承自 UITestControl)。 |
![]() |
ClassName | 取得這個控制項的類別名稱。 (繼承自 UITestControl)。 |
![]() |
Container | 取得或設定這個 UITestControl 的容器。 (繼承自 UITestControl)。 |
![]() |
ControlId | 取得指派給這個控制項的 ID。 (繼承自 WinControl)。 |
![]() |
ControlName | 取得此控制項的名稱。 (繼承自 WinControl)。 |
![]() |
ControlType | 取得 UI 控制項的型別。 (繼承自 UITestControl)。 |
![]() |
CopyPastedText | 使用「複製-貼上」取得或設定文字方塊中的文字。 |
![]() |
CurrentLine | 取得多行編輯控制項中資料指標位置的行號。 |
![]() |
Enabled | 取得值,這個值表示是否已啟用這個控制項。 (繼承自 UITestControl)。 |
![]() |
Exists | 取得值,這個值表示這個控制項是否存在使用者介面上。 (繼承自 UITestControl)。 |
![]() |
FilterProperties | 取得用於辨別控制項的屬性值組集合。 (繼承自 UITestControl)。 |
![]() |
FriendlyName | 取得此控制項要在使用者介面中使用的名稱。 (繼承自 UITestControl)。 |
![]() |
HasFocus | 取得值,這個值表示此控制項目前是否在使用者介面中具有焦點。 (繼承自 UITestControl)。 |
![]() |
Height | 取得控制項的高度。 (繼承自 UITestControl)。 |
![]() |
HelpText | 取得指派給此控制項的說明文字。 (繼承自 WinControl)。 |
![]() |
InsertionIndexAbsolute | 取得或設定插入號相對於控制項中之第一個字元的字元位置。 |
![]() |
InsertionIndexLineRelative | 取得包含插入號的行中插入號位置的欄號。 |
![]() |
IsPassword | 取得值,表示此編輯控制項是否包含密碼。 |
![]() |
IsTopParent | 取得值,指出此編輯控制項是否為最上層項目。 (繼承自 UITestControl)。 |
![]() |
Left | 取得控制項的左邊緣的 X 座標。 (繼承自 UITestControl)。 |
![]() |
LineCount | 取得此編輯控制項中的行數。 |
![]() |
MaxLength | 取得可輸入此編輯控制項中的最大字元數。 |
![]() |
Name | 取得此控制項的名稱。 (繼承自 UITestControl)。 |
![]() |
NativeElement | 取得對應至此控制項的原生技術項目。 (繼承自 UITestControl)。 |
![]() |
Password | 設定此編輯控制項的加密文字。 |
![]() |
ReadOnly | 取得值,這個值表示此編輯控制項是否為唯讀。 |
![]() |
SearchConfigurations | 取得或設定搜尋組態。 (繼承自 UITestControl)。 |
![]() |
SearchProperties | 取得用於識別控制項的屬性值組集合。 (繼承自 UITestControl)。 |
![]() |
SearchPropertiesSetExplicitly | 取得值,指出此控制項的搜尋屬性是否由使用者在使用者介面中設定。 (繼承自 UITestControl)。 |
![]() |
SelectionEnd | 取得或設定所選取文字的結束點。 |
![]() |
SelectionStart | 取得或設定所選取文字的起點。 |
![]() |
SelectionText | 取得或設定所選取文字的內容。 |
![]() |
State | 取得控制項的狀態。 (繼承自 UITestControl)。 |
![]() |
TechnologyName | 取得或設定實作這個控制項的技術架構。 (繼承自 UITestControl)。 |
![]() |
Text | 取得或設定此編輯控制項中的文字。 |
![]() |
ToolTipText | (繼承自 WinControl)。 |
![]() |
Top | 取得控制項的上邊緣的 X 座標。 (繼承自 UITestControl)。 |
![]() |
TopParent | 取得這個控制項的最上層父代。 (繼承自 UITestControl)。 |
![]() |
Width | 取得控制項的寬度。 (繼承自 UITestControl)。 |
![]() |
WindowHandle | 取得這個控制項的視窗控制代碼。 (繼承自 UITestControl)。 |
![]() |
WindowTitles | 取得最上層視窗標題的集合。 (繼承自 UITestControl)。 |
回頁首
方法
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。