Felder aktualisieren, entfernen
Feld aktualisieren
Aspose.Diagram for .NET lässt Sie aktualisieren und entfernenaufstellen bis Microsoft Visio Diagramme aus eigenen Applikationen, ohne Microsoft Office Automatisierung.
DasAufstellen Objekt repräsentiert ein Textfeld in aText Lauf. Die Feldeigenschaft, die durch die verfügbar gemacht wirdForm -Klasse unterstützt eine Sammlung von Aspose.Diagram.Field-Objekten.
Programmierbeispiel
Das folgende Stück Codeaktualisierungsfeld in Form.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(DetectFormatfromInputStream.class); | |
// Open the stream. Read only access to load a Visio diagram. | |
String stream = new String(dataDir + "Drawing1.vsdx"); | |
// detect file format using an input stream | |
FileFormatInfo info = FileFormatUtil.detectFileFormat(stream); | |
// get the detected file format | |
System.out.println("The spreadsheet format is: " + info.getFileFormatType()); |
Feld entfernen
Der folgende Codeabschnitt entfernt das Feld in der Form.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(DetectFormatfromInputStream.class); | |
// Open the stream. Read only access to load a Visio diagram. | |
String stream = new String(dataDir + "Drawing1.vsdx"); | |
// detect file format using an input stream | |
FileFormatInfo info = FileFormatUtil.detectFileFormat(stream); | |
// get the detected file format | |
System.out.println("The spreadsheet format is: " + info.getFileFormatType()); |