ActiveReports.Viewer3 Request technical support
Label Property
See Also  Example


Gets or sets the caption of the bookmark.

Syntax

Visual Basic (Declaration) 
Public Property Label As String
Visual Basic (Usage)Copy Code
Dim instance As Bookmark
Dim value As String
 
instance.Label = value
 
value = instance.Label
C# 
public string Label {get; set;}

Return Value

String.

Example

C#Copy Code
Private void arv_Load(object sender, System.EventArgs e)
{
   rptDocument rpt = New rptDocument();
   rpt.Run();
   arv.Document=rpt.Document;
   
int i;
   For (i = 1; i <= arv.Document.Bookmarks.Count; i++)
   {
       arv.Document.Bookmarks[i - 1].Label =
"Bookmark number " + i;
   }
}
Visual BasicCopy Code
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim rpt As New rptDocument
    rpt.Run()
    arv.Document = rpt.Document
    Dim i As Integer
    For i = 1 To arv.Document.Bookmarks.Count
        arv.Document.Bookmarks(i - 1).Label = "Bookmark number " & i
    Next i
End Sub

Remarks

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".

See Also