Class TableColumn
Represents a table column.
Implements
Inherited Members
Namespace: FastReport.Table
Assembly: FastReport.Base.dll
Syntax
public class TableColumn : ComponentBase, 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
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
Declaration
public override float Left { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
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
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)
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source |
Overrides
Clear()
Declaration
public override void Clear()
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |
Overrides
SetIndex(Int32)
Declaration
public void SetIndex(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |