TableField.Width
Contents
[
Hide
]TableField.Width property
Gets or sets the width in points of the field column in a table.
public int Width { get; set; }
Examples
Shows how to read project tables.
var project = new Project(DataDir + "ReadTableData.mpp");
// get the table
var table = project.Tables.ToList()[0];
Console.WriteLine("Print table fields of {0}", table.Name);
Console.WriteLine("Table Fields Count" + table.TableFields.Count);
// display all table fields' information
foreach (var field in table.TableFields)
{
Console.WriteLine(" Field: " + field.Field);
Console.WriteLine(" Width: " + field.Width);
Console.WriteLine(" Title: " + field.Title);
Console.WriteLine(" Title Alignment: " + field.AlignTitle);
Console.WriteLine(" Data Alignment: " + field.AlignData);
Console.WriteLine(" Wrap Header: " + field.WrapHeader);
Console.WriteLine(" Wrap Text: " + field.WrapText);
Console.WriteLine();
}
See Also
- class TableField
- namespace Aspose.Tasks
- assembly Aspose.Tasks