www.Chart4.NET | Samples

Loads data from the given array. See example below for the desired array format.

Namespace:  UnifoChart.Hierarchy
Assembly:  UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 2.6.0.0 (2.6)

Syntax

C#
public string LoadFromArray(
	ref string[,] Array
)
Visual Basic (Declaration)
Public Function LoadFromArray ( _
	ByRef Array As String(,) _
) As String
Visual Basic (Usage)
Dim instance As HierarchyData
Dim Array As String(,)
Dim returnValue As String

returnValue = instance.LoadFromArray(Array)
Visual C++
public:
String^ LoadFromArray(
	array<String^,2>^% Array
)
J#
public String LoadFromArray(
	/** @ref */String[,] Array
)
JScript
public function LoadFromArray(
	Array : String[,]
) : String
JavaScript
function LoadFromArray(Array);

Parameters

Array
Type: array< System..::.String ,2>[,](,)[,] %
The array that contains data

Return Value

Returns blank if succeeded, error message otherwise.

Examples

CopyC#
string[,] sArr1 = new string[,]{
            { "1", "", "TEXT1", "VALUE1", "TOOL_TIP1", "PHOTO1.PNG"            },
            { "2", "1", "Text11", "Value11", "ToolTip11", "Photo11.png"        },
            { "3", "1", "Text12", "Value12", "ToolTip12", "Photo12.png"        }, 
            { "4", "1", "Text13", "Value13", "ToolTip13", "Photo13.png"        }, 
            { "5", "3", "Text121", "Value121", "ToolTip121", "Photo121.png" }, 
            { "6", "3", "Text122", "Value122", "ToolTip122", "Photo122.png" }, 
            { "7", "3", "Text123", "Value123", "ToolTip123", "Photo123.png" }  
            };
hierarchy1.hpcData.LoadFromArray(ref sArr1);
hierarchy1.hpDataTree.ExpandAll( );
hierarchy1.Refresh( );

See Also