Skip to main content

DocumentViewerBase.PageBorderWidth Property

Specifies the width of the borders around all pages in the DocumentViewer.

Namespace: DevExpress.DocumentView.Controls

Assembly: DevExpress.Utils.v24.2.dll

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

Declaration

[DXCategory("Appearance")]
public int PageBorderWidth { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the width of the page borders.

Remarks

Use the PageBorderWidth property to change the look of page borders in Document Viewer. The width is obtained from the current skin.

If you set the PageBorderWidth property to 0, the page borders will be hidden.

To change the page border color, use the DocumentViewerBase.PageBorderColor 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:

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

See Also