Search Results for

    Show / Hide Table of Contents

    Class RichObject

    Represents a RichText object that can display formatted text.

    Inheritance
    System.Object
    Base
    ComponentBase
    ReportComponentBase
    BreakableComponent
    TextObjectBase
    RichObject
    Implements
    IFRSerializable
    ISearchable
    IHasEditor
    Inherited Members
    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.DeserializeSubItems(FRReader)
    TextObjectBase.ExtractMacros()
    TextObjectBase.GetDisplayText()
    FastReport.TextObjectBase.SearchText(System.String, System.Boolean, System.Boolean)
    FastReport.TextObjectBase.AssignFormat(FastReport.ReportComponentBase)
    FastReport.TextObjectBase.DrawSearchHighlight(FastReport.Utils.FRPaintEventArgs, System.Drawing.CharacterRange)
    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.ApplyStyle(Style)
    ReportComponentBase.SaveStyle()
    ReportComponentBase.RestoreStyle()
    ReportComponentBase.DrawBackground(FRPaintEventArgs)
    ReportComponentBase.IsVisible(FRPaintEventArgs)
    ReportComponentBase.Validate()
    ReportComponentBase.OnClick(EventArgs)
    ReportComponentBase.OnAfterLoad()
    ReportComponentBase.HasClickListeners()
    ReportComponentBase.ResetData()
    ReportComponentBase.InitializeComponent()
    ReportComponentBase.FinalizeComponent()
    ReportComponentBase.OnBeforePrint(EventArgs)
    ReportComponentBase.OnAfterPrint(EventArgs)
    ReportComponentBase.OnAfterData(EventArgs)
    FastReport.ReportComponentBase.Left
    FastReport.ReportComponentBase.Top
    FastReport.ReportComponentBase.Width
    FastReport.ReportComponentBase.Height
    FastReport.ReportComponentBase.HandleMouseDown(FastReport.Utils.FRMouseEventArgs)
    FastReport.ReportComponentBase.CheckParent(System.Boolean)
    FastReport.ReportComponentBase.DrawMarkers(FastReport.Utils.FRPaintEventArgs)
    FastReport.ReportComponentBase.DrawMarkers(FastReport.Utils.FRPaintEventArgs, FastReport.MarkerStyle)
    FastReport.ReportComponentBase.DrawIntersection(FastReport.Utils.FRPaintEventArgs)
    FastReport.ReportComponentBase.GetPreferredSize()
    FastReport.ReportComponentBase.OnAfterInsert(FastReport.InsertFrom)
    FastReport.ReportComponentBase.MouseMove
    FastReport.ReportComponentBase.MouseUp
    FastReport.ReportComponentBase.MouseDown
    FastReport.ReportComponentBase.MouseEnter
    FastReport.ReportComponentBase.MouseLeave
    FastReport.ReportComponentBase.AssignPreviewEvents(FastReport.Base)
    FastReport.ReportComponentBase.OnMouseMove(System.Windows.Forms.MouseEventArgs)
    FastReport.ReportComponentBase.OnMouseUp(System.Windows.Forms.MouseEventArgs)
    FastReport.ReportComponentBase.OnMouseDown(System.Windows.Forms.MouseEventArgs)
    FastReport.ReportComponentBase.OnMouseEnter(System.EventArgs)
    FastReport.ReportComponentBase.OnMouseLeave(System.EventArgs)
    FastReport.ReportComponentBase.OnMouseWheel(System.Windows.Forms.MouseEventArgs)
    FastReport.ReportComponentBase.GetPreviewContextMenu()
    ComponentBase.AbsBottom
    ComponentBase.AbsBounds
    ComponentBase.AbsLeft
    ComponentBase.AbsRight
    ComponentBase.AbsTop
    ComponentBase.Anchor
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.Dock
    ComponentBase.GroupIndex
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.Visible
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.CalcVisibleExpression(String)
    FastReport.ComponentBase.CheckNegativeSize(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.DrawDragAcceptFrame(FastReport.Utils.FRPaintEventArgs, System.Drawing.Color)
    FastReport.ComponentBase.DrawSelection(FastReport.Utils.FRPaintEventArgs)
    FastReport.ComponentBase.HandleDoubleClick()
    FastReport.ComponentBase.HandleDragDrop(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleDragOver(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleKeyDown(System.Windows.Forms.Control, System.Windows.Forms.KeyEventArgs)
    FastReport.ComponentBase.HandleMouseHover(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseMove(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseUp(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseWheel(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.PointInObject(System.Drawing.PointF)
    FastReport.ComponentBase.DrawSelectionPoint(FastReport.Utils.FRPaintEventArgs, System.Drawing.Pen, System.Drawing.Brush, System.Single, System.Single)
    FastReport.ComponentBase.GetSelectionPoints()
    FastReport.ComponentBase.PointInSelectionPoint(System.Single, System.Single, System.Drawing.PointF)
    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()
    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)
    FastReport.Base.IsSelected
    FastReport.Base.IsParentSelected
    FastReport.Base.Delete()
    FastReport.Base.OnBeforeInsert(System.Int32)
    FastReport.Base.SelectionChanged()
    FastReport.Base.GetImageIndex()
    Namespace: FastReport
    Assembly: FastReport.dll
    Syntax
    public class RichObject : TextObjectBase, IDisposable, IFRSerializable, ISearchable, IHasEditor
    Remarks

    Use the Text property to set the object's text. The text may include the RTF formatting tags.

    Constructors

    RichObject()

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

    Declaration
    public RichObject()

    Properties

    ActualTextLength

    Gets the actual text length.

    Declaration
    [Browsable(false)]
    public int ActualTextLength { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    This property is for internal use only; you should not use it in your code.

    ActualTextStart

    Gets the actual text start.

    Declaration
    [Browsable(false)]
    public int ActualTextStart { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    This property is for internal use only; you should not use it in your code.

    ConvertRichText

    Experimental feature for translation of RichText into report objects

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

    DataColumn

    Gets or sets a name of the data column bound to this control.

    Declaration
    public string DataColumn { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Value must contain the datasource name, for example: "Datasource.Column".

    KeepExpressionFormat

    This property not described

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

    OldBreakStyle

    Gets or sets the break style.

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

    Set this property to true if you want editable rich text when you edit the prepared report page.

    PicturesInParagraph

    Embedding pictures into text paragraphs instead of PictureObject

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

    Text

    Gets or sets the object's text.

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

    This property returns the formatted text with rtf tags.

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

    Break(BreakableComponent)

    Breaks the contents of the object.

    Declaration
    public override bool Break(BreakableComponent breakTo)
    Parameters
    Type Name Description
    BreakableComponent breakTo

    Object to put the part of content to that does not fit in this object. These two objects must have the same type.

    Returns
    Type Description
    System.Boolean

    true if there is enough space in this object to display at least one text line.

    Overrides
    BreakableComponent.Break(BreakableComponent)
    Remarks

    Do not call this method directly, it is used by the report engine. You should override it if you are writing a new FastReport object.

    This method must break the contents of the object. The part of content that fit in current object's bounds should remain in this object, the part that does not fit should be transferred to breakTo object.

    CalcHeight()

    Calculates the object's height.

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

    Actual object's height, in pixels.

    Overrides
    ReportComponentBase.CalcHeight()
    Remarks

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

    CanContain(Base)

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

    Deserialize(FRReader)

    Declaration
    public override void Deserialize(FRReader reader)
    Parameters
    Type Name Description
    FRReader reader
    Overrides
    ReportComponentBase.Deserialize(FRReader)

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    Base.Dispose(Boolean)

    Draw(FRPaintEventArgs)

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

    GetContextMenu()

    Gets the object's context menu.

    Declaration
    public override ContextMenuBase GetContextMenu()
    Returns
    Type Description
    ContextMenuBase

    Null reference if object does not have a menu.

    Overrides
    FastReport.ReportComponentBase.GetContextMenu()
    Remarks

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

    You may use base menu classes such as ComponentBaseMenu, ReportComponentBaseMenu to create own context menus.

    GetData()

    Gets the data from a datasource that the object is connected to.

    Declaration
    public override void GetData()
    Overrides
    ReportComponentBase.GetData()
    Remarks

    This method is called by the report engine before processing the object.

    Do not call it directly. You may override it if you are developing a new FastReport component. In this method you should get the data from a datasource that the object is connected to.

    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
    ReportComponentBase.GetDataAsync(CancellationToken)

    GetExpressions()

    Gets all expressions contained in the object.

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

    Array of expressions or null if object contains no expressions.

    Overrides
    ReportComponentBase.GetExpressions()
    Remarks

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

    This method is called by FastReport each time before run a report. FastReport do this to collect all expressions and compile them. For example, GetExpressions method of the TextObject class parses the text and returns all expressions found in the text.

    GetSmartTag()

    Returns a "smart tag" menu.

    Declaration
    public override SmartTagBase GetSmartTag()
    Returns
    Type Description
    SmartTagBase
    Overrides
    FastReport.ComponentBase.GetSmartTag()
    Remarks

    "Smart tag" is a little button that appears near the object's top-right corner when we are in the designer and move the mouse over the object. When you click that button you will see a popup window where you can set up some properties of the object. FastReport uses smart tags to quickly choose the datasource (for a band) or data column (for objects).

    InvokeEditor()

    Invokes the object's editor.

    Declaration
    public bool InvokeEditor()
    Returns
    Type Description
    System.Boolean

    true if object was succesfully edited.

    Remarks

    This method is called by FastReport when the object is doubleclicked in the designer.

    RestoreState()

    Restores the object's state after printing it.

    Declaration
    public override void RestoreState()
    Overrides
    ReportComponentBase.RestoreState()
    Remarks

    This method is called by the report engine after processing the object.

    Do not call it directly. You may override it if you are developing a new FastReport component. In this method you should restore the object properties that were saved by the SaveState() method.

    SaveState()

    Saves the object's state before printing it.

    Declaration
    public override void SaveState()
    Overrides
    ReportComponentBase.SaveState()
    Remarks

    This method is called by the report engine before processing the object.

    Do not call it directly. You may override it if you are developing a new FastReport component. In this method you should save any object properties that may be changed during the object printing. The standard implementation saves the object's bounds, visibility, bookmark and hyperlink.

    Serialize(FRWriter)

    Serializes the object.

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

    Writer object.

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

    UpdateLayout(Single, Single)

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

    Implements

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