www.Chart4.NET | Samples

The HierarchyData type exposes the following members.

Methods

  NameDescription
CollapseAll
Collapses all nodes in the hierarchy chart.
ExpandAll
Expands all nodes in the hierarchy chart.
LoadFromArrayOverloaded.
LoadFromCsvContent
Loads data from CSV (Comma Separated Values) content as a string.
LoadFromCsvFile
Loads data from a CSV (Comma Separated Values) file / flat file. See LoadFromCsvContent() for the desired CSV format and remarks.
LoadFromDatabaseOverloaded.
LoadFromDataTable
Loads data from the given DataTable object. See example below for the desired DataTable format.
LoadFromTables
Load organization chart data from a hierarchy of linked tables. Use Table property and Add method to link tables and to add data.
LoadFromXmlContent
Loads data from XML content as a string. See LoadFromXmlFile() for the desired XML format and remarks.
LoadFromXmlFile
Loads data from an XML file. See example below for the desired Xml format.

Properties

  NameDescription
Nodes
Collection of hierarchy nodes, for individual node access and customization. You can access individual nodes with indexer like Nodes["name"]. Methods are accessible through the code window only (not in a designer).
PhotoPath
Folder path (relative or absolute) of where the photo files are there in the system. Required, if you set PhotoSpecification as ByFileName and photo files are not in the application's root folder.
PhotoSpecification
How the photos for chart nodes are specified in the XML/table/array format. If it is set as ByFileName, then you may want to set PhotoPath too. Default is UsePhoto_ImageList4Levels.
Table
Collection of data tables. You can access child tables with indexer like Table["name"]. Methods are accessible through the code window only (not in a designer). See also LoadFromTables()()()
Tags
Collection of hierarchy nodes grouped with specified tag string, for individual node access and customization. Methods are accessible through the code window only (not in a designer).

See Also