Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewer.ContentMarginMode Property

Specifies the mode for calculating the outer border width displayed by a PdfViewer around document pages.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.2.dll

NuGet Package: DevExpress.Win.PdfViewer

#Declaration

[DefaultValue(PdfContentMarginMode.Dynamic)]
public PdfContentMarginMode ContentMarginMode { get; set; }

#Property Value

Type Default Description
PdfContentMarginMode Dynamic

A PdfContentMarginMode enumeration value.

Available values:

Name Description
Dynamic

The width of a page’s outer border is variable and depends on the skin that is currently applied to a PdfViewer.

Static

The page border width is constant regardless of the skin that is currently applied to a PdfViewer.

#Remarks

By default, the PdfViewer.ContentMarginMode property is set to Dynamic, making the width of a page’s outer border variable, depending on the skin that is currently applied to a PdfViewer.

To define a constant page border width regardless of the skin applied, set the ContentMarginMode to Static and assign a value to the PdfViewer.ContentMinMargin property.

See Also