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
'Declaração
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.
- imageFormat
Type: System.Drawing.Imaging.ImageFormat
The format of the image.
- overwriteExistingFiles
Type: System.Boolean
true if you want to overwrite a file that is already in the location; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.