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
- desiredSize
Type: System.Windows.Size
The target size of the toolbox bitmap.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.