property Node.LinkToColor(Key as String) as Color
Specifies the color to show the LinkTo line.

TypeDescription
Key as String A String expression that specifies the key of the node to link to.
Color A Color expression that specifies the color to show the link
The LinkToColor property specifies the color for an linkto line. Use the LinkTo property to arbitrary link the current nodes with others.  The LinkToColor property specifies the color of the links between nodes. The LinkToWidth, LinkToPen, LinkToRound, LinkToShowDir property specifies the width, pen, roundness, direction to show an arbitrary link.

The following VB sample changes the color to show an arbitrary line::
With ChartView1
	.PenWidthLink = 2
	.LinkColor = 0
	With .Nodes
		.Add("L1_A",0,"LA").LinkTo = "LB"
		With .Add("L1_B<br><br>Cust",0,"LB")
			.LinkTo = "LA2"
			.LinkToColor("LA2") = RGB(255,0,0)
			.LinkToWidth("LA2") = 2
		End With
		.Add "L2_A","LA","LA2"
		.Add "L2_B1","LB","LB21"
		.Add "L2_B2","LB","LB22"
		.Add "L2_B3","LB","LB23"
	End With
End With
The following VB.NET sample changes the color to show an arbitrary line::
With AxChartView1
	.PenWidthLink = 2
	.LinkColor = Color.FromArgb(0,0,0)
	With .Nodes
		.Add("L1_A",0,"LA").LinkTo = "LB"
		With .Add("L1_B<br><br>Cust",0,"LB")
			.LinkTo = "LA2"
			.LinkToColor("LA2") = 255
			.LinkToWidth("LA2") = 2
		End With
		.Add "L2_A","LA","LA2"
		.Add "L2_B1","LB","LB21"
		.Add "L2_B2","LB","LB22"
		.Add "L2_B3","LB","LB23"
	End With
End With
The following C++ sample changes the color to show an arbitrary line::
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXORGCHARTLib' for the library: 'ExOrgChart 1.0 Control Library'

	#import <ExOrgChart.dll>
	using namespace EXORGCHARTLib;
*/
EXORGCHARTLib::IChartViewPtr spChartView1 = GetDlgItem(IDC_CHARTVIEW1)->GetControlUnknown();
spChartView1->PutPenWidthLink(2);
spChartView1->PutLinkColor(0);
EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes();
	var_Nodes->Add(L"L1_A",0,"LA",vtMissing,vtMissing)->PutLinkTo("LB");
	EXORGCHARTLib::INodePtr var_Node = var_Nodes->Add(L"L1_B<br><br>Cust",0,"LB",vtMissing,vtMissing);
		var_Node->PutLinkTo("LA2");
		var_Node->PutLinkToColor(L"LA2",RGB(255,0,0));
		var_Node->PutLinkToWidth(L"LA2",2);
	var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing);
	var_Nodes->Add(L"L2_B1","LB","LB21",vtMissing,vtMissing);
	var_Nodes->Add(L"L2_B2","LB","LB22",vtMissing,vtMissing);
	var_Nodes->Add(L"L2_B3","LB","LB23",vtMissing,vtMissing);
The following C# sample changes the color to show an arbitrary line::
axChartView1.PenWidthLink = 2;
axChartView1.LinkColor = Color.FromArgb(0,0,0);
EXORGCHARTLib.Nodes var_Nodes = axChartView1.Nodes;
	var_Nodes.Add("L1_A",0,"LA",null,null).LinkTo = "LB";
	EXORGCHARTLib.Node var_Node = var_Nodes.Add("L1_B<br><br>Cust",0,"LB",null,null);
		var_Node.LinkTo = "LA2";
		var_Node.set_LinkToColor("LA2",255);
		var_Node.set_LinkToWidth("LA2",2);
	var_Nodes.Add("L2_A","LA","LA2",null,null);
	var_Nodes.Add("L2_B1","LB","LB21",null,null);
	var_Nodes.Add("L2_B2","LB","LB22",null,null);
	var_Nodes.Add("L2_B3","LB","LB23",null,null);
The following VFP sample changes the color to show an arbitrary line::
with thisform.ChartView1
	.PenWidthLink = 2
	.LinkColor = 0
	with .Nodes
		.Add("L1_A",0,"LA").LinkTo = "LB"
		with .Add("L1_B<br><br>Cust",0,"LB")
			.LinkTo = "LA2"
			.LinkToColor("LA2") = RGB(255,0,0)
			.LinkToWidth("LA2") = 2
		endwith
		.Add("L2_A","LA","LA2")
		.Add("L2_B1","LB","LB21")
		.Add("L2_B2","LB","LB22")
		.Add("L2_B3","LB","LB23")
	endwith
endwith
The following Delphi sample changes the color to show an arbitrary line::
with AxChartView1 do
begin
	PenWidthLink := 2;
	LinkColor := Color.FromArgb(0,0,0);
	with Nodes do
	begin
		Add('L1_A',TObject(0),'LA',Nil,Nil).LinkTo := 'LB';
		with Add('L1_B<br><br>Cust',TObject(0),'LB',Nil,Nil) do
		begin
			LinkTo := 'LA2';
			LinkToColor['LA2'] := 255;
			LinkToWidth['LA2'] := 2;
		end;
		Add('L2_A','LA','LA2',Nil,Nil);
		Add('L2_B1','LB','LB21',Nil,Nil);
		Add('L2_B2','LB','LB22',Nil,Nil);
		Add('L2_B3','LB','LB23',Nil,Nil);
	end;
end