this code fails to comppile at 'cell.ParentRow.ParentTable.SetBorder' with setborder is not a member of aspose.words.tables.table.
But if you remove the line the codecompiles and executes
Regards
Gordon
' Iterate through all tables in the document
Dim tables As NodeCollection = m_Doc.GetChildNodes(NodeType.Table, True)
For Each tbl As Table In tables
For Each cell As Cell In tbl.Rows(0).Cells
If cell.GetText.Contains("If paying by debit or credit card") Then
cell.ParentRow.ParentTable.SetBorder(BorderType.Left, LineStyle.Single, 1.5, Color.Green, True
End If
Next cell
Next
' Iterate through all tables in the document
Dim tables As NodeCollection = m_Doc.GetChildNodes(NodeType.Table, True)
For Each tbl As Table In tables
For Each cell As Cell In tbl.Rows(0).Cells
If cell.GetText.Contains("If paying by debit or credit card") Then
cell.ParentRow.ParentTable.SetBorder(BorderType.Left, LineStyle.Single, 1.5, Color.Green, True
End If
Next cell
Next