[Root] / Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / TextColumnCollection Class
Example


In This Topic
    TextColumnCollection Class
    In This Topic
    Represents a collection of TextColumns.
    Object Model
    TextColumnCollection ClassTextColumn Class
    Syntax
    'Declaration
     
    
    <DefaultMemberAttribute("Item")>
    Public Class TextColumnCollection 
    'Usage
     
    
    Dim instance As TextColumnCollection
    [DefaultMember("Item")]
    public class TextColumnCollection 
    Remarks
    The TextColumnCollection can be used to customize each TextColumn in the collection.
    Example
    // Gets the number of columns in the collection.
    int count = document.Sections[ 0 ].PageLayout.TextColumns.Count;
    
    // Gets The first column in the collection.
    var textColumn1 = document.Sections[ 0 ].PageLayout.TextColumns[ 0 ];
    
    // Modifies the column's attributes using the points (pts) system. 
    textColumn1.Width = 150d;
    textColumn1.Spacing = 36d
    Inheritance Hierarchy

    System.Object
       Xceed.Document.NET.TextColumnCollection

    Public Properties
     NameDescription
    Public PropertyGets the number of TextColumns in the TextColumnCollection.  
    Public PropertyGets a specific TextColumn from the TextColumnCollection.  
    Top
    Public Methods
     NameDescription
    Public MethodAdds a TextColumn to the TextColumnCollection.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also