Back to Devexpress

PdfOutlinesViewerSettings.ApplyOutlinesForeground Property

wpf-devexpress-dot-xpf-dot-pdfviewer-dot-pdfoutlinesviewersettings-ea9c32ea.md

latest2.9 KB
Original Source

PdfOutlinesViewerSettings.ApplyOutlinesForeground Property

Specifies whether to use document foreground colors for the outline node text in the Bookmarks panel.

Namespace : DevExpress.Xpf.PdfViewer

Assembly : DevExpress.Xpf.PdfViewer.v25.2.dll

NuGet Package : DevExpress.Wpf.PdfViewer

Declaration

csharp
public bool ApplyOutlinesForeground { get; set; }
vb
Public Property ApplyOutlinesForeground As Boolean

Property Value

TypeDescription
Boolean

true to apply document foreground colors to the outline node text; false to apply theme colors to the outline node text.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ApplyOutlinesForeground
PdfViewerControl

.OutlinesViewerSettings .ApplyOutlinesForeground

|

Remarks

To assign a theme to the PDF Viewer, add the corresponding assemblies to the Reference list of your project and set the ThemeManager.ThemeName property to the required theme name.

xaml
<Window xmlns:core="http://schemas.devexpress.com/winfx/2008/xaml/core">
<dxpdf:PdfViewerControl core:ThemeManager.ThemeName="MetropolisDark"/>

The table below shows the ApplyOutlinesForeground property in action with the ThemeManager.ThemeName property is set to “MetropolisDark”:

ApplyOutlinesForeground =trueApplyOutlinesForeground = false

Example

The code sample below shows how to specify these options in code:

xaml
<dxpdf:PdfViewerControl x:Name="pdfViewer" NavigationPanelsLayout="DockPanel">
    <dxpdf:PdfViewerControl.OutlinesViewerSettings>
        <dxpdf:PdfOutlinesViewerSettings ApplyOutlinesForeground="True" 
                                         HideAfterUse="True" 
                                         WrapLongLines="True"/>
    </dxpdf:PdfViewerControl.OutlinesViewerSettings>
</dxpdf:PdfViewerControl>

See Also

PdfOutlinesViewerSettings Class

PdfOutlinesViewerSettings Members

DevExpress.Xpf.PdfViewer Namespace