MarkupLanguage

ShapeBase.MarkupLanguage property

Gets MarkupLanguage used for this graphic object.

public ShapeMarkupLanguage MarkupLanguage { get; }

Examples

Shows how to verify a shape’s size and markup language.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertImage(ImageDir + "Transparent background logo.png");

Assert.AreEqual(ShapeMarkupLanguage.Dml, shape.MarkupLanguage);
Assert.AreEqual(new SizeF(300, 300), shape.SizeInPoints);

See Also