Type | Description | |||
String | A string expression that indicates the caption on the link between the parent and the current node. |
The LinkCaption property supports built-in HTML format. The supported tags are:
The control supports expandable HTML captions feature which allows you to expand(show)/collapse(hide) different information using <a ;exp=> or <a ;e64=> anchor tags. The exp/e64 field of the anchor stores the HTML line/lines to show once the user clicks/collapses/expands the caption.
Any ex-HTML caption can be transformed to an expandable-caption, by inserting the anchor ex-HTML tag. For instance, <solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3 shows the Header in underlined and bold on the first line and Line1, Line2, Line3 on the rest. The show lines is shown instead of Line1, Line2, Line3 once the user clicks the + sign.
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following samples shows how you can assign a HTML caption to a link:
VBA (MS Access, Excell...)
With ChartView1 .IndentSiblingY = 30 .ShowLinksDir = True .PenWidthLink = 2 .LinkColor = RGB(0,0,0) .AntiAliasing = True With .Nodes .Add("L1_A",0,"LA").LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link" .Add "L1_B",0,"LB" .Add "L2_A","LA","LA2" .Add "L2_B","LB","LB2" End With End With
VB6
With ChartView1 .IndentSiblingY = 30 .ShowLinksDir = True .PenWidthLink = 2 .LinkColor = RGB(0,0,0) .AntiAliasing = True With .Nodes .Add("L1_A",0,"LA").LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link" .Add "L1_B",0,"LB" .Add "L2_A","LA","LA2" .Add "L2_B","LB","LB2" End With End With
VB.NET
With Exchartview1 .IndentSiblingY = 30 .ShowLinksDir = True .PenWidthLink = 2 .LinkColor = Color.FromArgb(0,0,0) .AntiAliasing = True With .Nodes .Add("L1_A",0,"LA").LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link" .Add("L1_B",0,"LB") .Add("L2_A","LA","LA2") .Add("L2_B","LB","LB2") End With End With
VB.NET for /COM
With AxChartView1 .IndentSiblingY = 30 .ShowLinksDir = True .PenWidthLink = 2 .LinkColor = RGB(0,0,0) .AntiAliasing = True With .Nodes .Add("L1_A",0,"LA").LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link" .Add("L1_B",0,"LB") .Add("L2_A","LA","LA2") .Add("L2_B","LB","LB2") End With End With
C++
/* 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->PutIndentSiblingY(30); spChartView1->PutShowLinksDir(VARIANT_TRUE); spChartView1->PutPenWidthLink(2); spChartView1->PutLinkColor(RGB(0,0,0)); spChartView1->PutAntiAliasing(VARIANT_TRUE); EXORGCHARTLib::INodesPtr var_Nodes = spChartView1->GetNodes(); var_Nodes->Add(L"L1_A",long(0),"LA",vtMissing,vtMissing)->PutLinkCaption(L"<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link"); var_Nodes->Add(L"L1_B",long(0),"LB",vtMissing,vtMissing); var_Nodes->Add(L"L2_A","LA","LA2",vtMissing,vtMissing); var_Nodes->Add(L"L2_B","LB","LB2",vtMissing,vtMissing);
C#
exchartview1.IndentSiblingY = 30; exchartview1.ShowLinksDir = true; exchartview1.PenWidthLink = 2; exchartview1.LinkColor = Color.FromArgb(0,0,0); exchartview1.AntiAliasing = true; exontrol.EXORGCHARTLib.Nodes var_Nodes = exchartview1.Nodes; var_Nodes.Add("L1_A",0,"LA",null,null).LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link"; var_Nodes.Add("L1_B",0,"LB",null,null); var_Nodes.Add("L2_A","LA","LA2",null,null); var_Nodes.Add("L2_B","LB","LB2",null,null);
C# for /COM
axChartView1.IndentSiblingY = 30; axChartView1.ShowLinksDir = true; axChartView1.PenWidthLink = 2; axChartView1.LinkColor = Color.FromArgb(0,0,0); axChartView1.AntiAliasing = true; EXORGCHARTLib.Nodes var_Nodes = axChartView1.Nodes; var_Nodes.Add("L1_A",0,"LA",null,null).LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link"; var_Nodes.Add("L1_B",0,"LB",null,null); var_Nodes.Add("L2_A","LA","LA2",null,null); var_Nodes.Add("L2_B","LB","LB2",null,null);
X++ (Dynamics Ax 2009)
public void init() { COM com_Node,com_Nodes; anytype var_Node,var_Nodes; ; super(); exchartview1.IndentSiblingY(30); exchartview1.ShowLinksDir(true); exchartview1.PenWidthLink(2); exchartview1.LinkColor(WinApi::RGB2int(0,0,0)); exchartview1.AntiAliasing(true); var_Nodes = exchartview1.Nodes(); com_Nodes = var_Nodes; var_Node = COM::createFromObject(com_Nodes.Add("L1_A",COMVariant::createFromInt(0),"LA")); com_Node = var_Node; com_Node.LinkCaption("<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link"); com_Nodes.Add("L1_B",COMVariant::createFromInt(0),"LB"); com_Nodes.Add("L2_A","LA","LA2"); com_Nodes.Add("L2_B","LB","LB2"); }
Delphi 8 (.NET only)
with AxChartView1 do begin IndentSiblingY := 30; ShowLinksDir := True; PenWidthLink := 2; LinkColor := Color.FromArgb(0,0,0); AntiAliasing := True; with Nodes do begin Add('L1_A',TObject(0),'LA',Nil,Nil).LinkCaption := '<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link'; Add('L1_B',TObject(0),'LB',Nil,Nil); Add('L2_A','LA','LA2',Nil,Nil); Add('L2_B','LB','LB2',Nil,Nil); end; end
Delphi (standard)
with ChartView1 do begin IndentSiblingY := 30; ShowLinksDir := True; PenWidthLink := 2; LinkColor := RGB(0,0,0); AntiAliasing := True; with Nodes do begin Add('L1_A',OleVariant(0),'LA',Null,Null).LinkCaption := '<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link'; Add('L1_B',OleVariant(0),'LB',Null,Null); Add('L2_A','LA','LA2',Null,Null); Add('L2_B','LB','LB2',Null,Null); end; end
VFP
with thisform.ChartView1 .IndentSiblingY = 30 .ShowLinksDir = .T. .PenWidthLink = 2 .LinkColor = RGB(0,0,0) .AntiAliasing = .T. with .Nodes .Add("L1_A",0,"LA").LinkCaption = "<fgcolor=FF0000><font ;6>caption<br><c><bgcolor=FFFFFF><a>link" .Add("L1_B",0,"LB") .Add("L2_A","LA","LA2") .Add("L2_B","LB","LB2") endwith endwith