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: StringThe name of the diagram file.
exportPath
Type: StringThe path of the location where the image should be exported.
imageFormat
Type: ImageFormatThe format of the image.
overwriteExistingFiles
Type: Booleantrue 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.