This documentation is archived and is not being maintained.

ActivityDesigner.GetPreviewImage Method

Gets the image of the activity designer on the specified Graphics.

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public Image GetPreviewImage(
	Graphics compatibleGraphics


Type: System.Drawing.Graphics

The Graphics object used to draw the image.

Return Value

Type: System.Drawing.Image
An Image object that contains a bitmap used as a preview image in the drag-and-drop operations and in the ConditionedActivityGroup preview pane.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0