DiagramExporter.ExportDiagram Method

Exports a single diagram as an image in the specified format.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Public Sub ExportDiagram ( _
    diagramFileName As String, _
    exportPath As String, _
    imageFormat As ImageFormat, _
    overwriteExistingFiles As Boolean _
)
public void ExportDiagram(
    string diagramFileName,
    string exportPath,
    ImageFormat imageFormat,
    bool overwriteExistingFiles
)
public:
void ExportDiagram(
    String^ diagramFileName, 
    String^ exportPath, 
    ImageFormat^ imageFormat, 
    bool overwriteExistingFiles
)
member ExportDiagram : 
        diagramFileName:string * 
        exportPath:string * 
        imageFormat:ImageFormat * 
        overwriteExistingFiles:bool -> unit
public function ExportDiagram(
    diagramFileName : String, 
    exportPath : String, 
    imageFormat : ImageFormat, 
    overwriteExistingFiles : boolean
)

Parameters

  • diagramFileName
    Type: String

    The name of the diagram file.

  • exportPath
    Type: String

    The path of the location where the image should be exported.

  • imageFormat
    Type: ImageFormat

    The format of the image.

  • overwriteExistingFiles
    Type: Boolean

    true if you want to overwrite a file that is already in the location; otherwise, false.

.NET Framework Security

See Also

Reference

DiagramExporter Class

Microsoft.VisualStudio.Modeling.Shell Namespace