Alanları Güncelle, Kaldır
Alanı Güncelle
Aspose.Diagram for .NET güncellemenizi ve kaldırmanızı sağlaralan Microsoft Office Otomasyon olmadan kendi uygulamalarınız içinden Microsoft Visio şemaları.
buAlan nesne bir metin alanını temsil ederMetin koşmak. tarafından gösterilen alan özelliğiŞekil class, Aspose.Diagram.Field nesnelerinin bir koleksiyonunu destekler.
Programlama Örneği
Aşağıdaki kod parçası güncelleme alanı şeklindedir.
// 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()); |
Alanı Kaldır
Aşağıdaki kod parçası, şekildeki alanı kaldırır.
// 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()); |