SilverlightEdit 類別

表示編輯控制項。

繼承階層架構

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls.SilverlightControl
      Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls.SilverlightEdit

命名空間:  Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight (在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll 中)

語法

'宣告
Public Class SilverlightEdit _
    Inherits SilverlightControl
public class SilverlightEdit : SilverlightControl
public ref class SilverlightEdit : public SilverlightControl
type SilverlightEdit =  
    class
        inherit SilverlightControl
    end
public class SilverlightEdit extends SilverlightControl

SilverlightEdit 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 SilverlightEdit() 初始化 SilverlightEdit 類別的新執行個體。
公用方法 SilverlightEdit(UITestControl) 初始化 SilverlightEdit 類別的新執行個體,這個執行個體具有指定的父代。

回頁首

屬性

  名稱 說明
公用屬性 AcceleratorKey 取得控制項的鍵盤快速鍵。 (繼承自 SilverlightControl)。
公用屬性 AcceptsReturn 取得值,指出編輯控制項是否接受傳回索引鍵。
公用屬性 AccessKey 取得控制項的鍵盤快速鍵。 (繼承自 SilverlightControl)。
公用屬性 AutomationId 取得控制項的自動化 ID。 (繼承自 SilverlightControl)。
公用屬性 BackgroundColor 取得控制項的背景色彩。 (繼承自 SilverlightControl)。
公用屬性 BoundingRectangle (繼承自 UITestControl)。
公用屬性 ClassName (繼承自 UITestControl)。
公用屬性 Container (繼承自 UITestControl)。
公用屬性 ControlType (繼承自 UITestControl)。
公用屬性 Enabled (繼承自 UITestControl)。
公用屬性 Exists (繼承自 UITestControl)。
公用屬性 FilterProperties (繼承自 UITestControl)。
公用屬性 Font 取得控制項的字型。 (繼承自 SilverlightControl)。
公用屬性 ForegroundColor 取得控制項的前景色彩。 (繼承自 SilverlightControl)。
公用屬性 FriendlyName (繼承自 UITestControl)。
公用屬性 HasFocus (繼承自 UITestControl)。
公用屬性 Height 取得控制項的高度。 (繼承自 SilverlightControl)。
公用屬性 HelpText 取得控制項的說明文字。 (繼承自 SilverlightControl)。
公用屬性 IsPassword 取得值,這個值表示編輯控制項是否為密碼控制項。
公用屬性 IsTopParent (繼承自 UITestControl)。
公用屬性 LabeledBy 取得控制項的標籤文字。 (繼承自 SilverlightControl)。
公用屬性 MaxLength 取得可輸入編輯控制項中的最大字元數。
公用屬性 Name (繼承自 UITestControl)。
公用屬性 NativeElement (繼承自 UITestControl)。
公用屬性 Password 設定密碼編輯控制項的文字。
公用屬性 PasswordChar 取得用來遮蔽密碼輸入的字元。
公用屬性 ReadOnly 取得值,這個值表示編輯控制項是否為唯讀。
公用屬性 SearchConfigurations (繼承自 UITestControl)。
公用屬性 SearchProperties (繼承自 UITestControl)。
受保護的屬性 SearchPropertiesSetExplicitly (繼承自 UITestControl)。
公用屬性 SelectionEnd 取得或設定選取之文字的結尾。
公用屬性 SelectionLength 取得或設定選定文字的長度。
公用屬性 SelectionStart 取得或設定所選取文字的起始。
公用屬性 SelectionText 取得或設定目前選取的文字。
公用屬性 TechnologyName (繼承自 UITestControl)。
公用屬性 Text 取得或設定顯示在編輯控制項中的文字。
公用屬性 TextAlignment 取得值,這個值表示編輯控制項的對齊方式。
公用屬性 TextWrapping 取得值,這個值表示編輯控制項的換行方式。
公用屬性 TopParent (繼承自 UITestControl)。
公用屬性 Width 取得控制項的寬度。 (繼承自 SilverlightControl)。
公用屬性 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)。
公用方法 GetPropertyAsString 以字串形是取得指定屬性的值。 (繼承自 SilverlightControl)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 GetUITestControlsForSearch 在衍生類別中覆寫時,取得要搜尋之 UITestControl 物件的陣列。 (繼承自 SilverlightControl)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 SetFocus (繼承自 UITestControl)。
公用方法 SetProperty (繼承自 UITestControl)。
公用方法 ToString (繼承自 UITestControl)。
公用方法 TryGetClickablePoint (繼承自 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)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls 命名空間