Search Results for

    Show / Hide Table of Contents

    Class ParentControl

    Base class for controls that may contain child controls.

    Inheritance
    System.Object
    Base
    ComponentBase
    DialogComponentBase
    DialogControl
    ParentControl
    GroupBoxControl
    PanelControl
    Implements
    IFRSerializable
    IHasEditor
    IParent
    Inherited Members
    DialogControl.ShouldSerializeBackColor()
    DialogControl.ShouldSerializeCursor()
    DialogControl.ShouldSerializeFont()
    DialogControl.ShouldSerializeForeColor()
    DialogControl.GetSelectionPoints()
    DialogControl.DrawSelectionPoint(Graphics, Pen, Brush, Single, Single)
    DialogControl.CheckParent(Boolean)
    DialogControl.Draw(FRPaintEventArgs)
    DialogControl.InvokeEditor()
    DialogControl.OnBeforeInsert(Int32)
    DialogControl.Click
    DialogControl.DoubleClick
    DialogControl.Enter
    DialogControl.Leave
    DialogControl.KeyDown
    DialogControl.KeyPress
    DialogControl.KeyUp
    DialogControl.MouseDown
    DialogControl.MouseMove
    DialogControl.MouseUp
    DialogControl.MouseEnter
    DialogControl.MouseLeave
    DialogControl.Resize
    DialogControl.TextChanged
    DialogControl.Paint
    DialogControl.Control
    DialogControl.BackColor
    DialogControl.Cursor
    DialogControl.Enabled
    DialogControl.Font
    DialogControl.ForeColor
    DialogControl.RightToLeft
    DialogControl.TabIndex
    DialogControl.TabStop
    DialogControl.Text
    DialogControl.Dock
    DialogControl.Anchor
    DialogControl.Visible
    DialogControl.BindableProperty
    DialogControl.ClickEvent
    DialogControl.DoubleClickEvent
    DialogControl.EnterEvent
    DialogControl.LeaveEvent
    DialogControl.KeyDownEvent
    DialogControl.KeyPressEvent
    DialogControl.KeyUpEvent
    DialogControl.MouseDownEvent
    DialogControl.MouseMoveEvent
    DialogControl.MouseUpEvent
    DialogControl.MouseEnterEvent
    DialogControl.MouseLeaveEvent
    DialogControl.ResizeEvent
    DialogControl.TextChangedEvent
    DialogControl.PaintEvent
    DialogControl.Left
    DialogControl.Top
    DialogControl.Width
    DialogControl.Height
    DialogControl.Dispose(Boolean)
    DialogControl.OnEnabledChanged()
    DialogControl.AttachEvents()
    DialogControl.DetachEvents()
    DialogControl.SetParent(Base)
    DialogControl.Serialize(FRWriter)
    DialogControl.InitializeControl()
    DialogControl.FinalizeControl()
    DialogControl.Focus()
    DialogControl.Hide()
    DialogControl.Show()
    DialogControl.OnClick(EventArgs)
    DialogControl.OnDoubleClick(EventArgs)
    DialogControl.OnEnter(EventArgs)
    DialogControl.OnLeave(EventArgs)
    DialogControl.OnKeyDown(KeyEventArgs)
    DialogControl.OnKeyPress(KeyPressEventArgs)
    DialogControl.OnKeyUp(KeyEventArgs)
    DialogControl.OnMouseDown(MouseEventArgs)
    DialogControl.OnMouseMove(MouseEventArgs)
    DialogControl.OnMouseUp(MouseEventArgs)
    DialogControl.OnMouseEnter(EventArgs)
    DialogControl.OnMouseLeave(EventArgs)
    DialogControl.OnResize(EventArgs)
    DialogControl.OnTextChanged(EventArgs)
    DialogControl.OnPaint(PaintEventArgs)
    DialogComponentBase.GetContextMenu()
    DialogComponentBase.Location
    DialogComponentBase.Size
    DialogComponentBase.Assign(Base)
    ComponentBase.AbsBottom
    ComponentBase.AbsBounds
    ComponentBase.AbsLeft
    ComponentBase.AbsRight
    ComponentBase.AbsTop
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.GroupIndex
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.GetExpressions()
    ComponentBase.CalcVisibleExpression(String)
    FastReport.ComponentBase.CheckNegativeSize(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.DrawDragAcceptFrame(FastReport.Utils.FRPaintEventArgs, System.Drawing.Color)
    FastReport.ComponentBase.GetSmartTag()
    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.HandleMouseMove(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.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.DeserializeSubItems(FRReader)
    Base.ExtractDefaultMacros(String)
    Base.Dispose()
    Base.SetFlags(Flags, Boolean)
    Base.SetReport(Report)
    Base.SetName(String)
    Base.SetParentCore(Base)
    Base.FindObject(String)
    Base.CreateUniqueName()
    Base.Clear()
    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)
    FastReport.Base.IsSelected
    FastReport.Base.IsParentSelected
    FastReport.Base.Delete()
    FastReport.Base.OnAfterInsert(FastReport.InsertFrom)
    FastReport.Base.SelectionChanged()
    FastReport.Base.GetImageIndex()
    Namespace: FastReport.Dialog
    Assembly: FastReport.dll
    Syntax
    public class ParentControl : DialogControl, IDisposable, IFRSerializable, IHasEditor, IParent

    Constructors

    ParentControl()

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

    Declaration
    public ParentControl()

    Properties

    Controls

    Gets the collection of child controls.

    Declaration
    [Browsable(false)]
    public DialogComponentCollection Controls { get; }
    Property Value
    Type Description
    DialogComponentCollection

    Methods

    AddChild(Base)

    Adds a child object to this object's childs.

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

    Object to add.

    CanContain(Base)

    Gets a value indicating that this object can contain the specified child object.

    Declaration
    public virtual bool CanContain(Base child)
    Parameters
    Type Name Description
    Base child

    Child object.

    Returns
    Type Description
    System.Boolean

    true if this object can contain the specified child object; otherwise, false.

    DrawSelection(FRPaintEventArgs)

    Draw the selection points.

    Declaration
    public override void DrawSelection(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e

    Paint event args.

    Overrides
    DialogControl.DrawSelection(FRPaintEventArgs)
    Remarks

    This method draws a set of selection points returned by the FastReport.ComponentBase.GetSelectionPoints() method.

    GetChildObjects(ObjectCollection)

    Gets a list of child objects.

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

    List to fill with values.

    GetChildOrder(Base)

    Returns z-order of the specified child object.

    Declaration
    public virtual int GetChildOrder(Base child)
    Parameters
    Type Name Description
    Base child

    Child object.

    Returns
    Type Description
    System.Int32

    Z-order of the specified object.

    Remarks

    This method must return the index of a specified child object in the internal child list.

    GetPreferredSize()

    Gets the preferred size of an object.

    Declaration
    public override SizeF GetPreferredSize()
    Returns
    Type Description
    System.Drawing.SizeF

    Preferred size.

    Overrides
    FastReport.ComponentBase.GetPreferredSize()
    Remarks

    This method is called by the FastReport designer when you insert a new object.

    HandleMouseDown(FRMouseEventArgs)

    Handles MouseDown event that occurs when the user clicks the mouse in the designer.

    Declaration
    public override void HandleMouseDown(FRMouseEventArgs e)
    Parameters
    Type Name Description
    FRMouseEventArgs e

    Current mouse state.

    Overrides
    FastReport.ComponentBase.HandleMouseDown(FastReport.Utils.FRMouseEventArgs)
    Remarks

    This method is called when the user press the mouse button in the designer. The standard implementation does the following:

    • checks if the mouse pointer is inside the object;
    • add an object to the selected objects list of the designer;
    • sets the e.Handled flag to true.

    HandleMouseHover(FRMouseEventArgs)

    Handles MouseMove event that occurs when the user moves the mouse in the designer.

    Declaration
    public override void HandleMouseHover(FRMouseEventArgs e)
    Parameters
    Type Name Description
    FRMouseEventArgs e

    Current mouse state.

    Overrides
    FastReport.ComponentBase.HandleMouseHover(FastReport.Utils.FRMouseEventArgs)
    Remarks

    This method is called when the user moves the mouse in the designer. Typical use of this method is to change the mouse cursor to SizeAll when it is over an object. The standard implementation does the following:

    • checks if the mouse pointer is inside the object;
    • changes the cursor shape (e.Cursor property);
    • sets the e.Handled flag to true.

    HandleMouseUp(FRMouseEventArgs)

    Handles MouseUp event that occurs when the user releases the mouse button in the designer.

    Declaration
    public override void HandleMouseUp(FRMouseEventArgs e)
    Parameters
    Type Name Description
    FRMouseEventArgs e

    Current mouse state.

    Overrides
    FastReport.ComponentBase.HandleMouseUp(FastReport.Utils.FRMouseEventArgs)
    Remarks

    This method is called when the user releases the mouse button in the designer. The standard implementation does the following:

    • if e.Mode is WorkspaceMode2.SelectionRect, checks if object is inside the selection rectangle and sets e.Handled flag if so;
    • checks that object is inside its parent (calls the FastReport.ComponentBase.CheckParent(System.Boolean) method).

    RemoveChild(Base)

    Removes a specified object from this object's childs.

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

    SetChildOrder(Base, Int32)

    Sets the z-order of the specified object.

    Declaration
    public virtual void SetChildOrder(Base child, int order)
    Parameters
    Type Name Description
    Base child

    Child object.

    System.Int32 order

    New Z-order.

    Remarks

    This method must place the specified child object at the specified position in the internal child list.

    UpdateLayout(Single, Single)

    Updates the children layout when the size of this object is changed by dx, dy values.

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

    X delta.

    System.Single dy

    Y delta.

    Remarks

    This method must update positions/sizes of child objects whose Dock or Anchor properties are set to non-default values.

    Implements

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