|
|
|
|
|
<Organization Chart>.AddChild (Function) In french: <Organigramme>.AjouteFils Adds a child element into an Organization Chart control. // Add a "Root" element into the Organization Chart control Boss is int Boss = ORG_MyOrganizationChart.Add("Vince Boss", "big boss", "Goldbar.gif") // Add a child element ORG_MyOrganizationChart.AddChild(Boss, "Production")
// Add elements into the Organization Chart control (syntax 2) // Root element ElementCEO is OrgElement ElementCEO.Title = "Big Boss" ORG_EXECUTIVE.Add(ElementCEO) Â // Child elements Element2 is OrgElement Element2.Title = "Production" ORG_EXECUTIVE.AddChild(1, Element2) Â Element3 is OrgElement Element3.Title = "Sales" ORG_EXECUTIVE.AddChild(1, Element3)
Syntax
Adding a child elements while specifying its characteristics Hide the details
<Result> = <Organization Chart control>.AddChild(<Parent index> , <Title> [, <Content> [, <Image>]])
<Result>: Integer - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name Name of Organization Chart control into which the child element will be added. <Parent index>: Integer Index of the parent element of the element to be added. Remark: To add an element at the root of Organization Chart control, this parameter must be equal to 0. <Title>: Character string Title of element. <Content>: Optional character string Content of element. <Image>: Optional character string Image associated with the element. This image is displayed on the left of element title. This parameter corresponds to the name and to the full (or relative) path of image. A UNC path can be used.
Adding a child element by using the OrgElement type Hide the details
<Result> = <Organization Chart control>.AddChild(<Parent index> , <Element>)
<Result>: Integer - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name Name of Organization Chart control into which the child element will be added. <Parent index>: Integer Index of the parent element of the element to be added. Remark: To add an element at the root of Organization Chart control, this parameter must be equal to 0. <Element>: OrgElement variable Name of the OrgElement variable that describes the characteristics of the child element to be added.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|