Class ParentControl
Base class for controls that may contain child controls.
Inheritance
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class ParentControl : DialogControl, IDisposable, IFRSerializable, IParentConstructors
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. | 
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.
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.