How to Get Font Styles


I want to get bold, slanted, underlined,top, bottom fonts,But I didn’t find the right API,please help me. (13.2 KB)



Usually font style information can be retrieved using following code snippet:

Aspose.Diagram.Diagram diagram = new Diagram.Diagram(dataDir + "font.vsd");
Aspose.Diagram.Page page = diagram.Pages.GetPage("Page-1");
// Get shape by ID
Aspose.Diagram.Shape shape = page.Shapes.GetShape(1);
var fontstyle = shape.Chars[0].Style.Value;

However, we noticed that API was unable to return font style as you are expecting. Hence, we have logged an investigation ticket as DIAGRAMNET-51682 in our issue tracking system to look into this matter further. We will let you know as soon as the ticket is resolved. Please spare us little time.

We are sorry for the inconvenience.


The issues you have found earlier (filed as DIAGRAMNET-51682) have been fixed in Aspose.Diagram for .NET 19.9.