Back to Devexpress

DocumentViewerBase.PageBorderColor Property

windowsforms-devexpress-dot-documentview-dot-controls-dot-documentviewerbase-0cc28acd.md

latest3.3 KB
Original Source

DocumentViewerBase.PageBorderColor Property

Specifies the color used to draw borders around all pages in DocumentViewer.

Namespace : DevExpress.DocumentView.Controls

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("Appearance")]
public Color PageBorderColor { get; set; }
vb
<DXCategory("Appearance")>
Public Property PageBorderColor As Color

Property Value

TypeDescription
Color

A Color structure that specifies the color of page borders.

|

Remarks

Use the PageBorderColor property to change how the page borders look. The color is obtained from the current skin. To change the page border width, use the PageBorderWidth property.

To hide the page borders, 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:s

If you want to change the border style, use Skin Editor’s PRINTING | Page section : Working in Skin Editor.

See Also

SelectedPage

PageBorderColor

PageBorderWidth

DocumentViewerBase Class

DocumentViewerBase Members

DevExpress.DocumentView.Controls Namespace