Class ContainerObject
Container object that may contain child objects.
Inheritance
System.Object
ContainerObject
Assembly: FastReport.Base.dll
Syntax
public class ContainerObject : ReportComponentBase, IFRSerializable, IParent
Constructors
ContainerObject()
Initializes a new instance of the ContainerObject class with default settings.
Declaration
Properties
AfterLayoutEvent
Gets or sets a script event name that will be fired after the child objects layout was finished.
Declaration
public string AfterLayoutEvent { get; set; }
Property Value
Type |
Description |
System.String |
|
BeforeLayoutEvent
Gets or sets a script event name that will be fired before the container layouts its child objects.
Declaration
public string BeforeLayoutEvent { get; set; }
Property Value
Type |
Description |
System.String |
|
Objects
Gets the collection of child objects.
Declaration
public ReportComponentCollection Objects { get; }
Property Value
Methods
AddChild(Base)
Declaration
public virtual 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
CalcHeight()
Declaration
public override float CalcHeight()
Returns
Type |
Description |
System.Single |
|
Overrides
CanContain(Base)
Declaration
public virtual bool CanContain(Base child)
Parameters
Type |
Name |
Description |
Base |
child |
|
Returns
Type |
Description |
System.Boolean |
|
Draw(FRPaintEventArgs)
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Overrides
GetChildObjects(ObjectCollection)
Declaration
public virtual void GetChildObjects(ObjectCollection list)
Parameters
GetChildOrder(Base)
Declaration
public virtual int GetChildOrder(Base child)
Parameters
Type |
Name |
Description |
Base |
child |
|
Returns
Type |
Description |
System.Int32 |
|
GetData()
Declaration
public override void GetData()
Overrides
OnAfterLayout(EventArgs)
This method fires the AfterLayout event and the script code connected to the AfterLayoutEvent.
Declaration
public void OnAfterLayout(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
Event data.
|
OnBeforeLayout(EventArgs)
This method fires the BeforeLayout event and the script code connected to the BeforeLayoutEvent.
Declaration
public void OnBeforeLayout(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
Event data.
|
RemoveChild(Base)
Declaration
public virtual void RemoveChild(Base child)
Parameters
Type |
Name |
Description |
Base |
child |
|
RestoreState()
Declaration
public override void RestoreState()
Overrides
SaveState()
Declaration
public override void SaveState()
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Overrides
SetChildOrder(Base, Int32)
Declaration
public virtual void SetChildOrder(Base child, int order)
Parameters
Type |
Name |
Description |
Base |
child |
|
System.Int32 |
order |
|
UpdateLayout(Single, Single)
Declaration
public virtual void UpdateLayout(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Events
AfterLayout
This event occurs after the child objects layout was finished.
Declaration
public event EventHandler AfterLayout
Event Type
Type |
Description |
System.EventHandler |
|
BeforeLayout
This event occurs before the container layouts its child objects.
Declaration
public event EventHandler BeforeLayout
Event Type
Type |
Description |
System.EventHandler |
|
Implements