MarkupLanguage

ShapeBase.MarkupLanguage property

يحصل على لغة الترميز المستخدمة لهذا الكائن الرسومي.

public ShapeMarkupLanguage MarkupLanguage { get; }

أمثلة

يوضح كيفية التحقق من حجم الشكل ولغة الترميز.

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);

أنظر أيضا