共用方式為


UITestBuilderButton.Image 屬性

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

取得或設定顯示在按鈕上的影像。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Common
組件:  Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

語法

'宣告
Public Property Image As BitmapImage
    Get
    Private Set
public BitmapImage Image { get; private set; }
public:
property BitmapImage^ Image {
    BitmapImage^ get ();
    private: void set (BitmapImage^ value);
}
member Image : BitmapImage with get, private set
function get Image () : BitmapImage
private function set Image (value : BitmapImage)

屬性值

型別:System.Windows.Media.Imaging.BitmapImage
要顯示在按鈕上的影像。

.NET Framework 安全性

請參閱

參考

UITestBuilderButton 類別

Microsoft.VisualStudio.TestTools.UITest.Common 命名空間