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.That(shape.MarkupLanguage, Is.EqualTo(ShapeMarkupLanguage.Dml));
Assert.That(shape.SizeInPoints, Is.EqualTo(new SizeF(300, 300)));

See Also