DocumentViewerBase.SelectedPageBorderWidth Property
Specifies the width of the borders around the currently selected page in DocumentViewer.
Namespace: DevExpress.DocumentView.Controls
Assembly: DevExpress.Utils.v25.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value that specifies the width of the selected page’s borders. |
Remarks
Use the SelectedPageBorderWidth
property to change the look of borders that are drawn around the selected page in Document Viewer. The width is obtained from the current skin.
If you set the SelectedPageBorderWidth
property to 0
, the selected page’s borders look like the borders of pages that are not selected (defined by the PageBorderVisibility, PageBorderColor and PageBorderWidth properties).
To change the color of the selected page’s borders, use the SelectedPageBorderColor property.
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:
- DocumentViewerBase.PageBorderVisibility
- DocumentViewerBase.PageBorderColor
- DocumentViewerBase.PageBorderWidth
- DocumentViewerBase.SelectedPageBorderColor
If you want to change the border style, use Skin Editor’s PRINTING | Page section: Working in Skin Editor.