Back to Devexpress

PdfViewer.ContentMarginMode Property

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-eaf15d7b.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
[DefaultValue(PdfContentMarginMode.Dynamic)]
public PdfContentMarginMode ContentMarginMode { get; set; }
vb
<DefaultValue(PdfContentMarginMode.Dynamic)>
Public Property ContentMarginMode As PdfContentMarginMode

Property Value

TypeDefaultDescription
PdfContentMarginModeDynamic

A PdfContentMarginMode enumeration value.

|

Available values:

NameDescription
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

ContentMinMargin

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace