WorkflowView::SaveWorkflowImage Method (String^, ImageFormat^)

 

Saves an image of the WorkflowView to the specified file using the specified image format.

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

public:
void SaveWorkflowImage(
	String^ imageFile,
	ImageFormat^ imageFormat
)

Parameters

imageFile
Type: System::String^

The path to the file in which to store the workflow view image.

imageFormat
Type: System.Drawing.Imaging::ImageFormat^

The ImageFormat to use to save the workflow view image.

Exception Condition
ArgumentNullException

imageFile or imageFormat contains a null reference (Nothing in Visual Basic).

The workflow view image is created as a bitmap.

The following example shows how to save the currently loaded workflow image using a String. In this example, a SaveFileDialog is created to prompt the user for the filename of the image to save. The filename and the ImageFormat.Bmp flag are then passed to the SaveWorkflowImage method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: