Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Count As System.Integer |
C# | |
---|---|
public System.int Count {get;} |
C# | Copy Code |
---|---|
private void btnClearTOC_Click(object sender, System.EventArgs e) { MessageBox.Show ("Clearing " + arv.Document.Bookmarks.Count.ToString() + " bookmarks."); arv.Document.Bookmarks.Clear(); arv.TableOfContents.Clear(); } |
Visual Basic | Copy Code |
---|---|
Private Sub btnClearTOC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClearTOC.Click MsgBox("Clearing " & arv.Document.Bookmarks.Count.ToString & " bookmarks.") arv.Document.Bookmarks.Clear() arv.TableOfContents.Clear() End Sub |