Value
PreferredWidth.Value property
Gets the preferred width value. The unit of measure is specified in the Type
property.
public double Value { get; }
Examples
Shows how to verify the preferred width type and value of a table cell.
Document doc = new Document(MyDir + "Tables.docx");
Table table = doc.FirstSection.Body.Tables[0];
Cell firstCell = table.FirstRow.FirstCell;
Assert.That(firstCell.CellFormat.PreferredWidth.Type, Is.EqualTo(PreferredWidthType.Percent));
Assert.That(firstCell.CellFormat.PreferredWidth.Value, Is.EqualTo(11.16d));
See Also
- class PreferredWidth
- namespace Aspose.Words.Tables
- assembly Aspose.Words