Share via


IToolboxExample.GetImageStream Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets a stream for use by the StreamSource property.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.IO.Stream
A Stream that represents the toolbox bitmap of the example instance.

Remarks

The bitmap is used as the preview of this example instance, with the size specified by desiredSize.

.NET Framework Security

See Also

Reference

IToolboxExample Interface

Microsoft.Windows.Design Namespace

IToolboxExampleFactory

ToolboxExampleAttribute