LineSpacing

Font.LineSpacing property

إرجاع المسافة بين أسطر هذا الخط (بالنقاط).

public double LineSpacing { get; }

أمثلة

يوضح كيفية الحصول على المسافة بين أسطر الخط، بالنقاط.

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

// تعيين خطوط مختلفة لـ DocumentBuilder والتحقق من تباعد السطور الخاصة بها.
builder.Font.Name = "Calibri";
Assert.AreEqual(14.6484375d, builder.Font.LineSpacing);

builder.Font.Name = "Times New Roman";
Assert.AreEqual(13.798828125d, builder.Font.LineSpacing);

أنظر أيضا