Search Results for

    Show / Hide Table of Contents

    Class TableColumn

    Represents a table column.

    Inheritance
    System.Object
    Base
    ComponentBase
    TableColumn
    Implements
    IFRSerializable
    Inherited Members
    ComponentBase.AbsBottom
    ComponentBase.AbsBounds
    ComponentBase.AbsLeft
    ComponentBase.AbsRight
    ComponentBase.AbsTop
    ComponentBase.Anchor
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.Dock
    ComponentBase.GroupIndex
    ComponentBase.Height
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.Top
    ComponentBase.Visible
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.GetExpressions()
    ComponentBase.CalcVisibleExpression(String)
    Base.Name
    Base.Restrictions
    Base.Flags
    Base.Parent
    Base.BaseName
    Base.ClassName
    Base.Report
    Base.Page
    Base.ChildObjects
    Base.AllObjects
    Base.ZOrder
    Base.IsAncestor
    Base.IsDesigning
    Base.IsPrinting
    Base.IsRunning
    Base.OriginalComponent
    Base.Disposed
    Base.SetProp(Base, Base)
    Base.FloatDiff(Single, Single)
    Base.DeserializeSubItems(FRReader)
    Base.ExtractDefaultMacros(String)
    Base.Dispose(Boolean)
    Base.Dispose()
    Base.SetFlags(Flags, Boolean)
    Base.SetReport(Report)
    Base.SetName(String)
    Base.SetParent(Base)
    Base.SetParentCore(Base)
    Base.FindObject(String)
    Base.CreateUniqueName()
    Base.Deserialize(FRReader)
    Base.BaseAssign(Base)
    Base.AssignAll(Base)
    Base.HasParent(Base)
    Base.HasFlag(Flags)
    Base.HasRestriction(Restrictions)
    Base.InvokeEvent(String, Object)
    Base.OnAfterLoad()
    Base.GetCustomScript()
    Base.ExtractMacros()
    Base.IsHaveToConvert(Object)
    Base.GetConvertedObjects()
    Base.ForEachAllConvectedObjects(Object)
    Namespace: FastReport.Table
    Assembly: FastReport.Base.dll
    Syntax
    public class TableColumn : ComponentBase, IDisposable, IFRSerializable
    Remarks

    Use the Width property to set the width of a column. If AutoSize property is true, the column will calculate its width automatically.

    You can also set the MinWidth and MaxWidth properties to restrict the column's width.

    Constructors

    TableColumn()

    Initializes a new instance of the TableColumn class.

    Declaration
    public TableColumn()

    Properties

    AutoSize

    Gets or sets a value determines if the column should calculate its width automatically.

    Declaration
    public bool AutoSize { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    The column width cannot exceed the range defined by the MinWidth and MaxWidth properties.

    Index

    Gets the index of this column.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    System.Int32

    KeepColumns

    Gets or sets the number of columns to keep on the same page.

    Declaration
    public int KeepColumns { get; set; }
    Property Value
    Type Description
    System.Int32

    Left

    Gets or sets the left coordinate of the object in relation to its container.

    Declaration
    public override float Left { get; set; }
    Property Value
    Type Description
    System.Single
    Overrides
    ComponentBase.Left
    Remarks

    This property value is measured in the screen pixels. Use Units class to convert a value to desired units.

    To obtain absolute coordinate, use AbsLeft property.

    MaxWidth

    Gets or sets the maximal width for this column, in pixels.

    Declaration
    public float MaxWidth { get; set; }
    Property Value
    Type Description
    System.Single

    MinWidth

    Gets or sets the minimal width for this column, in pixels.

    Declaration
    public float MinWidth { get; set; }
    Property Value
    Type Description
    System.Single

    PageBreak

    Gets or sets the page break flag for this column.

    Declaration
    public bool PageBreak { get; set; }
    Property Value
    Type Description
    System.Boolean

    Width

    Gets or sets a width of the column, in pixels.

    Declaration
    public override float Width { get; set; }
    Property Value
    Type Description
    System.Single
    Overrides
    ComponentBase.Width
    Remarks

    The column width cannot exceed the range defined by the MinWidth and MaxWidth properties.

    note

    To convert between pixels and report units, use the constants defined in the Units class.

    Methods

    Assign(Base)

    Copies the contents of another, similar object.

    Declaration
    public override void Assign(Base source)
    Parameters
    Type Name Description
    Base source

    Source object to copy the contents from.

    Overrides
    ComponentBase.Assign(Base)
    Remarks

    Call Assign to copy the properties from another object of the same type. The standard form of a call to Assign is

    destination.Assign(source);

    which tells the destination object to copy the contents of the source object to itself. In this method, all child objects are ignored. If you want to copy child objects, use the AssignAll method.

    See Also
    AssignAll(Base)

    Clear()

    Clears the object's state.

    Declaration
    public override void Clear()
    Overrides
    Base.Clear()
    Remarks

    This method also disposes all object's children.

    Serialize(FRWriter)

    Serializes the object.

    Declaration
    public override void Serialize(FRWriter writer)
    Parameters
    Type Name Description
    FRWriter writer

    Writer object.

    Overrides
    ComponentBase.Serialize(FRWriter)
    Remarks

    Do not call this method directly. You should override it if you are developing a new component for FastReport.

    This method is called when the object needs to save the state. It may happen when:

    • saving the report to the file or stream;
    • saving the report to the designer's undo buffer;
    • assigning the object to another object using the Assign(Base) or AssignAll methods;
    • saving the object to the designer's clipboard;
    • saving the object to the preview (when run a report).

    SetIndex(Int32)

    Declaration
    public void SetIndex(int value)
    Parameters
    Type Name Description
    System.Int32 value

    Implements

    IFRSerializable
    Back to top © 1998-2025 Copyright Fast Reports Inc.