[]
Represents a collection of TextColumn objects that represent all columns of text in a section.
public class TextColumnCollection : IEnumerable<TextColumn>, IEnumerable
Gets the number of columns in the section of a document.
public short Count { get; }
Gets or sets a value indicating whether all text columns are of equal width and evenly spaced.
public bool EvenlySpaced { get; set; }
If you set Spacing or Width on this TextColumnCollection, this property will be automatically set to true. Also, setting this property may change Spacing and Width values.
Gets a text column at a specified index.
public TextColumn this[int index] { get; }
index
intThe column index.
A text column at the specified index.
Gets or sets a value indicating whether to add a vertical line between columns.
public bool LineBetween { get; set; }
When columns are evenly spaced (see EvenlySpaced), gets or sets the amount of space between each column in points.
public float Spacing { get; set; }
When columns are evenly spaced (see EvenlySpaced), gets or sets the width of the columns.
public float Width { get; set; }
Adds a new TextColumn to the section.
public TextColumn Add()
The newly created TextColumn.
Adds a new TextColumn to the section.
This method sets the EvenlySpaced property to false.
public TextColumn Add(float width, float spaceAfter)
width
floatThe width of the new text column, in points.
spaceAfter
floatThe space between this column and the next column, in points.
The newly created TextColumn.
Adds a new TextColumn to the section.
public TextColumn Add(float width)
width
floatThe width of the new text column, in points.
The newly created TextColumn.
Returns an enumerator that iterates through the collection.
public IEnumerator<TextColumn> GetEnumerator()
An enumerator that can be used to iterate through the collection.
Sets the number of columns in a section of a document.
public void SetCount(short count)
count
shortThe number of text columns in the section.