Show / Hide Table of Contents

Interface IParent

Implement this interface if your object can contain list of child objects.

Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public interface IParent

Methods

AddChild(Base)

Adds a child object to this object's childs.

Declaration
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
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
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
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
void RemoveChild(Base child)
Parameters
Type Name Description
Base child

SetChildOrder(Base, Int32)

Sets the z-order of the specified object.

Declaration
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
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.

Back to top Generated by DocFX