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 命名空间