Search Results for

    Show / Hide Table of Contents

    Class TableCell

    Represents a table cell.

    Inheritance
    System.Object
    Base
    ComponentBase
    ReportComponentBase
    BreakableComponent
    TextObjectBase
    TextObject
    TableCell
    Implements
    IFRSerializable
    IParent
    Inherited Members
    TextObject.ParagraphFormat
    TextObject.AutoWidth
    TextObject.AutoShrink
    TextObject.AutoShrinkMinSize
    TextObject.HorzAlign
    TextObject.VertAlign
    TextObject.Angle
    TextObject.RightToLeft
    TextObject.WordWrap
    TextObject.Underlines
    TextObject.Font
    TextObject.TabPositions
    TextObject.TextFill
    TextObject.TextOutline
    TextObject.TextColor
    TextObject.Trimming
    TextObject.FontWidthRatio
    TextObject.LineHeight
    TextObject.FirstTabOffset
    TextObject.TabWidth
    TextObject.Clip
    TextObject.Highlight
    TextObject.Wysiwyg
    TextObject.ForceJustify
    TextObject.HtmlTags
    TextObject.HasHtmlTags
    TextObject.TextRenderType
    TextObject.ParagraphOffset
    TextObject.InlineImageCache
    TextObject.MergeMode
    TextObject.DeserializeSubItems(FRReader)
    TextObject.GetStringFormat(GraphicCache, StringFormatFlags)
    TextObject.GetHtmlTextRenderer(Single, Single)
    TextObject.DrawText(FRPaintEventArgs)
    TextObject.Draw(FRPaintEventArgs)
    TextObject.ApplyStyle(Style)
    TextObject.SaveStyle()
    TextObject.RestoreStyle()
    TextObject.Deserialize(FRReader)
    TextObject.InitializeComponent()
    TextObject.FinalizeComponent()
    TextObject.CalcWidth()
    TextObject.CalcHeight()
    TextObject.Break(BreakableComponent)
    TextObjectBase.AllowExpressions
    TextObjectBase.Brackets
    TextObjectBase.Padding
    TextObjectBase.HideZeros
    TextObjectBase.HideValue
    TextObjectBase.NullValue
    TextObjectBase.Format
    TextObjectBase.ProcessAt
    TextObjectBase.Formats
    TextObjectBase.Duplicates
    TextObjectBase.Value
    TextObjectBase.Editable
    TextObjectBase.ExtractMacros()
    TextObjectBase.GetDisplayText()
    BreakableComponent.CanBreak
    BreakableComponent.BreakTo
    ReportComponentBase.BeforePrint
    ReportComponentBase.AfterPrint
    ReportComponentBase.AfterData
    ReportComponentBase.Click
    ReportComponentBase.Exportable
    ReportComponentBase.ExportableExpression
    ReportComponentBase.Border
    ReportComponentBase.Fill
    ReportComponentBase.FillColor
    ReportComponentBase.Bookmark
    ReportComponentBase.Hyperlink
    ReportComponentBase.CanGrow
    ReportComponentBase.CanShrink
    ReportComponentBase.GrowToBottom
    ReportComponentBase.ShiftMode
    ReportComponentBase.Style
    ReportComponentBase.EvenStyle
    ReportComponentBase.HoverStyle
    ReportComponentBase.EvenStylePriority
    ReportComponentBase.PageBreak
    ReportComponentBase.PrintOn
    ReportComponentBase.BeforePrintEvent
    ReportComponentBase.AfterPrintEvent
    ReportComponentBase.AfterDataEvent
    ReportComponentBase.ClickEvent
    ReportComponentBase.FlagSimpleBorder
    ReportComponentBase.FlagUseBorder
    ReportComponentBase.FlagUseFill
    ReportComponentBase.FlagPreviewVisible
    ReportComponentBase.FlagSerializeStyle
    ReportComponentBase.FlagProvidesHyperlinkValue
    ReportComponentBase.IsCompilationNeeded
    ReportComponentBase.Cursor
    ReportComponentBase.MouseMoveEvent
    ReportComponentBase.MouseUpEvent
    ReportComponentBase.MouseDownEvent
    ReportComponentBase.MouseEnterEvent
    ReportComponentBase.MouseLeaveEvent
    ReportComponentBase.DrawBackground(FRPaintEventArgs)
    ReportComponentBase.IsVisible(FRPaintEventArgs)
    ReportComponentBase.Validate()
    ReportComponentBase.OnClick(EventArgs)
    ReportComponentBase.OnAfterLoad()
    ReportComponentBase.HasClickListeners()
    ReportComponentBase.ResetData()
    ReportComponentBase.OnBeforePrint(EventArgs)
    ReportComponentBase.OnAfterPrint(EventArgs)
    ReportComponentBase.OnAfterData(EventArgs)
    ComponentBase.AbsBottom
    ComponentBase.AbsBounds
    ComponentBase.AbsRight
    ComponentBase.Anchor
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.Dock
    ComponentBase.GroupIndex
    ComponentBase.Left
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.Top
    ComponentBase.Visible
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    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.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.Clear()
    Base.BaseAssign(Base)
    Base.AssignAll(Base)
    Base.HasParent(Base)
    Base.HasFlag(Flags)
    Base.HasRestriction(Restrictions)
    Base.InvokeEvent(String, Object)
    Base.GetCustomScript()
    Base.IsHaveToConvert(Object)
    Base.GetConvertedObjects()
    Base.ForEachAllConvectedObjects(Object)
    Namespace: FastReport.Table
    Assembly: FastReport.Base.dll
    Syntax
    public class TableCell : TextObject, IDisposable, IFRSerializable, IParent
    Remarks

    Use ColSpan, RowSpan properties to set the cell's column and row spans. To put an object inside the cell, use its Objects property:

    TableCell cell1;
    PictureObject picture1 = new PictureObject();
    picture1.Bounds = new RectangleF(0, 0, 32, 32);
    picture1.Name = "Picture1";
    cell1.Objects.Add(picture1);

    Constructors

    TableCell()

    Initializes a new instance of the TableCell class.

    Declaration
    public TableCell()

    Properties

    AbsLeft

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

    AbsTop

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

    Address

    Gets the address of this cell.

    Declaration
    public Point Address { get; }
    Property Value
    Type Description
    Point

    CellData

    Ges or sets data associated with this cell. For internal use only.

    Declaration
    public TableCellData CellData { get; set; }
    Property Value
    Type Description
    TableCellData

    CellDuplicates

    Gets or sets a value that determines how to display duplicate values in the cells of the same group.

    Declaration
    public CellDuplicates CellDuplicates { get; set; }
    Property Value
    Type Description
    CellDuplicates

    ColSpan

    Gets or sets the column span for this cell.

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

    Height

    This property is not relevant to this class.

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

    Objects

    Gets a collection of objects contained in this cell.

    Declaration
    public ReportComponentCollection Objects { get; }
    Property Value
    Type Description
    ReportComponentCollection

    RowSpan

    Gets or sets the row span for this cell.

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

    Table

    Gets the TableBase object which this cell belongs to.

    Declaration
    public TableBase Table { get; }
    Property Value
    Type Description
    TableBase

    Text

    Declaration
    public override string Text { get; set; }
    Property Value
    Type Description
    System.String
    Overrides
    TextObjectBase.Text

    Width

    This property is not relevant to this class.

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

    Methods

    AddChild(Base)

    Declaration
    public void AddChild(Base child)
    Parameters
    Type Name Description
    Base child

    Assign(Base)

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

    CanContain(Base)

    Declaration
    public bool CanContain(Base child)
    Parameters
    Type Name Description
    Base child
    Returns
    Type Description
    System.Boolean

    Clone()

    Creates the exact copy of this cell.

    Declaration
    public TableCell Clone()
    Returns
    Type Description
    TableCell

    The copy of this cell.

    Equals(TableCell)

    Determines if two cells have identical settings.

    Declaration
    public bool Equals(TableCell cell)
    Parameters
    Type Name Description
    TableCell cell

    Cell to compare with.

    Returns
    Type Description
    System.Boolean

    true if cells are equal.

    GetChildObjects(ObjectCollection)

    Declaration
    public void GetChildObjects(ObjectCollection list)
    Parameters
    Type Name Description
    ObjectCollection list

    GetChildOrder(Base)

    Declaration
    public int GetChildOrder(Base child)
    Parameters
    Type Name Description
    Base child
    Returns
    Type Description
    System.Int32

    GetData()

    Declaration
    public override void GetData()
    Overrides
    TextObject.GetData()

    GetDataAsync(CancellationToken)

    Declaration
    public override async Task GetDataAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    TextObject.GetDataAsync(CancellationToken)

    GetExpressions()

    Declaration
    public override string[] GetExpressions()
    Returns
    Type Description
    System.String[]
    Overrides
    TextObject.GetExpressions()

    RemoveChild(Base)

    Declaration
    public void RemoveChild(Base child)
    Parameters
    Type Name Description
    Base child

    RestoreState()

    Declaration
    public override void RestoreState()
    Overrides
    TextObject.RestoreState()

    SaveState()

    Declaration
    public override void SaveState()
    Overrides
    TextObject.SaveState()

    Serialize(FRWriter)

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

    SetChildOrder(Base, Int32)

    Declaration
    public void SetChildOrder(Base child, int order)
    Parameters
    Type Name Description
    Base child
    System.Int32 order

    SetStyle(TableCell)

    Changes the cell's style.

    Declaration
    public void SetStyle(TableCell style)
    Parameters
    Type Name Description
    TableCell style

    The new style.

    Remarks

    Each cell in a dynamic table object (or in a matrix) has associated style. Several cells may share one style. If you try to change the cell's appearance directly (like setting cell.TextColor), it may affect other cells in the table. To change the single cell, use this method.

    UpdateLayout(Single, Single)

    Declaration
    public void UpdateLayout(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx
    System.Single dy

    Implements

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