TreeGetItemPropertyAt method (WinStudio scripts)
Applies To
IWSFormComponent interface, tree objects
Definition
Returns a string containing the value of a property found at a specific node.
Syntax
object.TreeGetItemPropertyAt( string1, integer )
object.TreeGetItemPropertyAt( string1, string2 )
Part | Description |
object | Required. A reference to a valid tree component object. |
string1 | Required. The tree node ID (GUID) or node index series. |
integer | Optional. The property in a zero-based index found at the target node. Properties are counted from left to right as they appear in the data-binding specifications in WinStudio. |
string2 | Optional. The property name found at the target node. |
Example
Dim propertyValue As String = String.Empty
propertyValue = ThisForm.Components("tree1").TreeGetItemPropertyAt("My Tree Node ID", 0)
propertyValue = ThisForm.Components("tree1").TreeGetItemPropertyAt("My Tree Node ID", "propertyName")
propertyValue = ThisForm.Components("tree1").TreeGetItemPropertyAt("2,0", 0)
propertyValue = ThisForm.Components("tree1").TreeGetItemPropertyAt("2,0", "propertyName")