ActiveReports Developer 7
Label Property
See Also  Example
GrapeCity.ActiveReports.Document.v7 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > Bookmark Class : Label Property

Glossary Item Box

Gets or sets the caption of the bookmark.

Syntax

Visual Basic (Declaration) 
Public Property Label As System.String
C# 
public System.string Label {get; set;}

Property Value

String.

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

Example

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 BasicCopy 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

See Also