DocumentViewerBase.PageBorderVisibility Property
Specifies whether borders should be painted on all document pages or selected pages in the DocumentViewer.
Namespace: DevExpress.DocumentView.Controls
Assembly: DevExpress.Utils.v25.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
PageBorderVisibility | The PageBorderVisibility enumeration value, which specifies page border visibility. |
Available values:
Name | Description |
---|---|
None | Borders are not painted around pages at all. |
AllWithoutSelection | Only standard page borders are painted. |
All | Both standard borders and selection borders are painted around pages. |
Remarks
The PageBorderVisibility
property controls page border visibility in the DocumentViewer.
The default property value is PageBorderVisibility.All. In this case, all pages are painted with borders, and the currently selected page has an additional “selection” border.
If you do not want the selection to be painted around the selected page, set the PageBorderVisibility
property to AllWithoutSelection.
If you do not want page borders to be painted at all (for example, if Document Viewer’s BackColor property is set to White
), set the PageBorderVisibility
property to None.
Use Page Border Properties with Skins
In most modern themes, the appearance of borders is defined by the current skin. Most elements - including borders - are created with image tiles. Since all border changes are applied under the image tiles, border property changes are often overridden by the skin. No property assignment can modify this image — you can only create a skin patch and then load it at runtime. For example, you cannot customize page borders with the following DocumentViewerBase
properties:
If you want to change the border style, use Skin Editor’s PRINTING | Page section: Working in Skin Editor.