Search Results for

    Show / Hide Table of Contents

    Class CellularTextObject

    Represents a text object which draws each symbol of text in its own cell.

    Inheritance
    System.Object
    Base
    ComponentBase
    ReportComponentBase
    BreakableComponent
    TextObjectBase
    TextObject
    CellularTextObject
    Implements
    IFRSerializable
    Inherited Members
    TextObject.GetDataAsync(CancellationToken)
    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.ApplyStyle(Style)
    TextObject.SaveStyle()
    TextObject.RestoreStyle()
    TextObject.Deserialize(FRReader)
    TextObject.InitializeComponent()
    TextObject.FinalizeComponent()
    TextObject.GetExpressions()
    TextObject.SaveState()
    TextObject.RestoreState()
    TextObject.CalcWidth()
    TextObject.GetData()
    TextObject.Break(BreakableComponent)
    TextObjectBase.AllowExpressions
    TextObjectBase.Brackets
    TextObjectBase.Text
    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.AbsLeft
    ComponentBase.AbsRight
    ComponentBase.AbsTop
    ComponentBase.Anchor
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.Dock
    ComponentBase.GroupIndex
    ComponentBase.Height
    ComponentBase.Left
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.Top
    ComponentBase.Visible
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.Width
    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
    Assembly: FastReport.Base.dll
    Syntax
    public class CellularTextObject : TextObject, IDisposable, IFRSerializable
    Remarks

    The text may be aligned to left or right side, or centered. Use the HorzAlign property to do this. The "justify" align is not supported now, as well as vertical alignment.

    The cell size is defined in the CellWidth and CellHeight properties. These properties are 0 by default, in this case the size of cell is calculated automatically based on the object's Font.

    To define a spacing (gap) between cells, use the HorzSpacing and VertSpacing properties.

    Constructors

    CellularTextObject()

    Initializes a new instance of the CellularTextObject class with the default settings.

    Declaration
    public CellularTextObject()

    Properties

    CellHeight

    Gets or sets the height of cell, in pixels.

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

    If zero width and/or height specified, the object will calculate the cell size automatically based on its font.

    CellWidth

    Gets or sets the width of cell, in pixels.

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

    If zero width and/or height specified, the object will calculate the cell size automatically based on its font.

    HorzSpacing

    Gets or sets the horizontal spacing between cells, in pixels.

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

    VertSpacing

    Gets or sets the vertical spacing between cells, in pixels.

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

    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
    TextObject.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)

    CalcHeight()

    Calculates the object's height.

    Declaration
    public override float CalcHeight()
    Returns
    Type Description
    System.Single

    Actual object's height, in pixels.

    Overrides
    TextObject.CalcHeight()
    Remarks

    Applicable to objects that contain several text lines, such as TextObject. Returns the height needed to display all the text lines.

    Draw(FRPaintEventArgs)

    Declaration
    public override void Draw(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e
    Overrides
    TextObject.Draw(FRPaintEventArgs)

    GetTable()

    Declaration
    public TableObject GetTable()
    Returns
    Type Description
    TableObject

    Serialize(FRWriter)

    Serializes the object.

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

    Writer object.

    Overrides
    TextObject.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).

    Implements

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