WorkflowView::SaveWorkflowImage Method (String^, ImageFormat^)
.NET Framework (current version)
Saves an image of the WorkflowView to the specified file using the specified image format.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: