 |
PdfBookmarkOptionsCssSelectors Property |
Gets or sets the CSS selectors used to identify bookmark elements. When
HierarchicalBookmarks is enabled, the selectors are interpreted as
outline levels in array order:
CssSelectors[0] becomes the top-level
outline entries,
CssSelectors[1] nests under them, and so on.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic string[] CssSelectors { get; set; }Public Property CssSelectors As String()
Get
Set
Property Value
String
ExampleHtmlToPdf converter = new HtmlToPdf();
converter.Options.PdfBookmarkOptions.CssSelectors =
new string[] { "h1", "h2", "h3" };
converter.Options.PdfBookmarkOptions.HierarchicalBookmarks = true;Dim converter As New HtmlToPdf()
converter.Options.PdfBookmarkOptions.CssSelectors =
New String() {"h1", "h2", "h3"}
converter.Options.PdfBookmarkOptions.HierarchicalBookmarks = True
See Also