IToolboxExample.GetImageStream 方法

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

获取由 StreamSource 属性使用的流。

命名空间:  Microsoft.Windows.Design
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Function GetImageStream ( _
    desiredSize As Size _
) As Stream
Stream GetImageStream(
    Size desiredSize
)
Stream^ GetImageStream(
    Size desiredSize
)
abstract GetImageStream : 
        desiredSize:Size -> Stream 
function GetImageStream(
    desiredSize : Size
) : Stream

参数

返回值

类型:System.IO.Stream
一个 Stream,表示示例实例的工具箱位图。

备注

该位图用作示例实例的预览,其大小由 desiredSize 指定。

.NET Framework 安全性

请参见

参考

IToolboxExample 接口

Microsoft.Windows.Design 命名空间

IToolboxExampleFactory

ToolboxExampleAttribute