/// <summary> /// Adds the specified outline entry. /// </summary> /// <param name="title">The outline text.</param> /// <param name="destinationPage">The destination page.</param> /// <param name="opened">Specifies whether the node is displayed expanded (opened) or collapsed.</param> /// <param name="style">The font style used to draw the outline text.</param> public PdfOutline Add(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style) { PdfOutline outline = new PdfOutline(title, destinationPage, opened, style); Add(outline); return(outline); }
/// <summary> /// Initializes a new instance of the <see cref="PdfOutline"/> class. /// </summary> /// <param name="title">The outline text.</param> /// <param name="destinationPage">The destination page.</param> /// <param name="opened">Specifies whether the node is displayed expanded (opened) or collapsed.</param> /// <param name="style">The font style used to draw the outline text.</param> public PdfOutline(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style) { Title = title; DestinationPage = destinationPage; Opened = opened; Style = style; }
/// <summary> /// Initializes a new instance of the <see cref="PdfOutline"/> class. /// </summary> /// <param name="title">The outline text.</param> /// <param name="destinationPage">The destination page.</param> /// <param name="opened">Specifies whether the node is displayed expanded (opened) or collapsed.</param> /// <param name="style">The font style used to draw the outline text.</param> /// <param name="textColor">The color used to draw the outline text.</param> public PdfOutline(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style, XColor textColor) { Title = title; DestinationPage = destinationPage; Opened = opened; Style = style; TextColor = textColor; }
/// <summary> /// Adds the specified outline entry. /// </summary> /// <param name="title">The outline text.</param> /// <param name="destinationPage">The destination page.</param> /// <param name="opened">Specifies whether the node is displayed expanded (opened) or collapsed.</param> /// <param name="style">The font style used to draw the outline text.</param> public PdfOutline Add(string title, PdfPage destinationPage, bool opened, PdfOutlineStyle style) { PdfOutline outline = new PdfOutline(title, destinationPage, opened, style); Add(outline); return outline; }