I am able to get the count by doing DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns.Count")
but unble to get the column header texts by doing the following, it returns empty strings.
For
i As Integer = 0 To
ColumnCount - 1
Dim ColumnCaptions As String = DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns[" & i & "].Text")
Console.WriteLine(ColumnCaptions)
Next
Any ideas?
Thanks in advance!
Try TextResolved instead of Text, i.e.:
Dim ColumnCaptions As String = DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns[" & i & "].TextResolved")
if the developer did not set the text explicitly it will be empty string but the header text will be set to TextResolved which is usually the name of the column
Hope that works
Regards,
Ammar
Hi Ammar,
I am able to get the header caption by using ".TextResolved".
Thanks for your help.
Tina