Need documentation on usage of FindValueByNode method in the TreeViewPlus class of the .NET Web ADF Reference.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM011389
已提交
August 31, 2007
上次修改时间
April 2, 2025
适用范围
No Product Found
找到的版本
9.2
编程语言
C#
修正版本
9.3
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
The valuepath string sytax for FindValueByNode method : "<resourcename>" or "<resourcename>/<layerid>"Sample Code to find all possible valuepaths for a given TOC Control:C#:===foreach (TreeViewPlusNode t1 in Toc1.Nodes){ // get value path of earch resource if needed string rvp = t1.ValuePath; //get the name of the resource string rname = t1.Text foreach (TreeViewPlusNode t2 in t1.Nodes) { //get the valuepath of each layer inside the resource string vpath = t2.ValuePath; //get the name of layer string layername = t2.Text; }}