RC-WinTrans Object Model Help |
TextTableView.Refresh
|
Refreshes the Text Table view.
Syntax: |
Refresh( Index As Long ) |
| Parameters: |
Index Index of the entry to be refreshed. Index = -1 redraws the entire list view.
|
| Example: | Sub TestTextTableView()
Dim View As TextTableView
Dim ProjFile As ProjectFile
Dim TU As TransUnit
Dim Index As Long
Set View = Application.ActiveProject.ProjectDocument.TextTableView
Set ProjFile = Application.ActiveProjectFile
Set TU = Application.ActiveTransUnit
Index = View.GetIndex(ProjFile, TU.Number)
If (View.RemoveAt(Index)) Then
Index = View.Add(-1, ProjFile, TU.Number)
View.Refresh (-1)
End If
|
| Remarks: | If the index is -1 the entire view will be refeshed. |
See also: