ShapeBaseMarkupLanguage Property
Gets MarkupLanguage used for this graphic object.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public ShapeMarkupLanguage MarkupLanguage { get; }

Property Value

Type: ShapeMarkupLanguage
Examples
Shows how get markup language for shape object in document
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage(ImageDir + "dotnet-logo.png");

// Loop through all single shapes inside document.
foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true).OfType<Shape>())
{

    Console.WriteLine("Shape: " + shape.MarkupLanguage);
    Console.WriteLine("ShapeSize: " + shape.SizeInPoints);
}
See Also