windowsforms-devexpress-dot-documentview-dot-controls-dot-documentviewerbase-0696187b.md
Specifies the color of borders around the selected page in DocumentViewer.
Namespace : DevExpress.DocumentView.Controls
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Appearance")]
public Color SelectedPageBorderColor { get; set; }
<DXCategory("Appearance")>
Public Property SelectedPageBorderColor As Color
| Type | Description |
|---|---|
| Color |
A Color structure, specifying the border color of the selected page.
|
Use the SelectedPageBorderColor property to change the look of borders that are drawn around the selected page in Document Viewer. The color is obtained from the current skin.
To change the width of the selected page’s borders, use the SelectedPageBorderWidth property.
To hide the selection around pages, set the PageBorderVisibility property to PageBorderVisibility.AllWithoutSelection.
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.
See Also