ShapeMarkupLanguage Enumeration |
Specifies Markup language used for the shape.
Namespace:
Aspose.Words.Drawing
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum ShapeMarkupLanguage
Public Enumeration ShapeMarkupLanguage
public enum class ShapeMarkupLanguage
Members
| Member name | Value | Description |
---|
| Dml | 0 |
Drawing Markup Language is used to define the shape.
|
| Vml | 1 |
Vector Markup Language is used to define the shape.
|
ExamplesShows conversion VML shapes to DML using ISO/IEC 29500:2008 Strict compliance level.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
doc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2003);
builder.InsertImage(ImageDir + "Transparent background logo.png");
foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true).OfType<Shape>())
{
Console.WriteLine(shape.MarkupLanguage);
}
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions
{
Compliance = OoxmlCompliance.Iso29500_2008_Strict,
SaveFormat = SaveFormat.Docx
};
doc.Save(ArtifactsDir + "OoxmlSaveOptions.Iso29500Strict.docx", saveOptions);
See Also