Gets the OutlineNodeCollection representing the collection of
OutlineNode objects of the current document.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[BrowsableAttribute(false)] [XmlElementAttribute("Outlines")] public OutlineNodeCollection Outlines { get; } |
Visual Basic |
---|
<BrowsableAttribute(False)> _ <XmlElementAttribute("Outlines")> _ Public ReadOnly Property Outlines As OutlineNodeCollection Get |
Examples
The following example uses the Outlines property to create an outline on a tab in the Navigational panel of the preview to point to some text:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load MakeDoc1(C1PrintDocument1) C1PrintDocument1.Generate() End Sub Private Sub MakeDoc1(ByVal doc As C1.C1Preview.C1PrintDocument) Dim rt As C1.C1Preview.RenderText = New C1.C1Preview.RenderText("This is some text.") ' Add text to the document. doc.Body.Children.Add(rt) ' Create an outline to point to that text. doc.Outlines.Add("some text", rt) End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e) { MakeDoc1(c1PrintDocument1); c1PrintDocument1.Generate(); } private void MakeDoc1(C1.C1Preview.C1PrintDocument doc) { C1.C1Preview.RenderText rt = new C1.C1Preview.RenderText("This is some text."); // Add text to the document. doc.Body.Children.Add(rt); // Create an outline to point to that text. doc.Outlines.Add("some text", rt); } |