Share via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.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: System.String
    The name of the diagram file.
  • exportPath
    Type: System.String
    The path of the location where the image should be exported.
  • overwriteExistingFiles
    Type: System.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