Aggiorna, rimuovi campi
Aggiorna Campo
Aspose.Diagram for .NET consente di aggiornare e rimuoverecampo a Microsoft Visio diagrammi dall’interno delle proprie applicazioni, senza Microsoft Office Automazione.
IlCampo l’oggetto rappresenta il campo di testo in atesto correre. La proprietà del campo, esposta dalForma class supporta una raccolta di oggetti Aspose.Diagram.Field.
Esempio di programmazione
Il seguente pezzo di campo di aggiornamento del codice in forma.
// 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()); |
Rimuovi campo
Il seguente pezzo di codice rimuove il campo in shape.
// 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()); |