Visual Basic (Declaration) | |
---|---|
Public Property Label As System.String |
C# | |
---|---|
public System.string Label {get; set;} |
Property Value
String.The name can be a simple string or a path to create a hierarchy. For example, "Entry 1" is a node with no parent, "Entry 1\Child 1.1" is a bookmark node with a caption "Child 1.1" whose parent is "Entry 1".
C# | Copy Code |
---|---|
Private void viewer1_Load(object sender, System.EventArgs e) { rptDocument rpt = New rptDocument(); rpt.Run(); viewer1.Document=rpt.Document; int i; For (i = 1; i <= viewer1.Document.Bookmarks.Count; i++) { viewer1.Document.Bookmarks[i - 1].Label = "Bookmark number " + i; } } |
Visual Basic | Copy Code |
---|---|
Private Sub viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load Dim rpt As New rptDocument rpt.Run() viewer1.Document = rpt.Document Dim i As Integer For i = 1 To viewer1.Document.Bookmarks.Count viewer1.Document.Bookmarks(i - 1).Label = "Bookmark number " & i Next i End Sub |