|
|
|
|
|
<Organization Chart>.AddChild (Función) 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")
ElementCEO is OrgElement
ElementCEO.Title = "Big Boss"
ORG_EXECUTIVE.Add(ElementCEO)
Element2 is OrgElement
Element2.Title = "Production"
ORG_EXECUTIVE.AddChild(1, Element2)
Element3 is OrgElement
Element3.Title = "Sales"
ORG_EXECUTIVE.AddChild(1, Element3)
Sintaxis
Añadir un elemento hijo especificando sus características Ocultar los detalles
<Result> = <Organization Chart control>.AddChild(<Parent index> , <Title> [, <Content> [, <Image>]])
<Result>: Integro - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Nombre del control Name of Organization Chart control into which the child element will be added. <Parent index>: Integro Index of the parent element of the element to be added. Note: To add an element to the root of the Organization Chart control, this parameter must be 0. <Title>: Cadena de caracteres Title of element. <Content>: Cadena de caracteres opcional Content of element. <Image>: Cadena de caracteres opcional 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.
Añadir un elemento hijo utilizando el tipo OrgElement Ocultar los detalles
<Result> = <Organization Chart control>.AddChild(<Parent index> , <Element>)
<Result>: Integro - Index of the added element.
- -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Nombre del control Name of Organization Chart control into which the child element will be added. <Parent index>: Integro Index of the parent element of the element to be added. Note: To add an element to the root of the Organization Chart control, this parameter must be 0. <Element>: OrgElemento variable Name of the OrgElement variable that describes the characteristics of the child element to be added.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|