Visio Şeklini Html'ye Dönüştür
Contents
[
Hide
]
** visio şeklini html’ye dönüştürün**
Tarafından sunulan ToHTML yöntemiŞekil class, html’ye dönüştürmek için kullanılabilir.
Aşağıdaki kod nasıl yapılacağını gösterir:
- Bir numune yükleyin diagram.
- belirli bir sayfa alın.
- Belirli bir şekil elde edin.
- şekli html’ye dönüştürün.
Html’ye Şekil Ver
visio şeklini html’ye dönüştürmek için .net uygulamanızda aşağıdaki kodu kullanın.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_Shapes(); | |
// Call a Diagram class constructor to load the VSDX diagram | |
Diagram diagram = new Diagram(dataDir + "ShapeToHtml.vsdx"); | |
// Get a particular page | |
Page page = diagram.Pages[0]; | |
// Get a particular shape | |
Shape shape = page.Shapes[0]; | |
// Shape to HTML | |
Aspose.Diagram.Saving.HTMLSaveOptions hs = new Aspose.Diagram.Saving.HTMLSaveOptions(); | |
shape.ToHTML("out.htm", hs); |