Value

PreferredWidth.Value property

يحصل على قيمة العرض المفضلة. وحدة القياس محددة فيType الملكية.

public double Value { get; }

أمثلة

يوضح كيفية التحقق من نوع العرض المفضل وقيمة خلية الجدول.

Document doc = new Document(MyDir + "Tables.docx");

Table table = doc.FirstSection.Body.Tables[0];
Cell firstCell = table.FirstRow.FirstCell;

Assert.AreEqual(PreferredWidthType.Percent, firstCell.CellFormat.PreferredWidth.Type);
Assert.AreEqual(11.16d, firstCell.CellFormat.PreferredWidth.Value);

أنظر أيضا