PageMargins Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Creates a new instance of the PageMargins class.
Syntax
PageMargins()
Creates a new instance of the PageMargins class with a left, top, right and bottom margin of 1 inch.
public PageMargins();Public Sub New()PageMargins(double, double, double, double)
Creates a new instance of the PageMargins class with the specified margins.
public PageMargins(double left, double top, double right, double bottom);Public Sub New(left As Double, top As Double, right As Double, bottom As Double)| Parameter | Description |
|---|---|
| left | Specifies the left page margin. |
| top | Specifies the top page margin. |
| right | Specifies the right page margin. |
| bottom | Specifies the bottom page margin. |
PageMargins(SerializationInfo, StreamingContext)
protected PageMargins(SerializationInfo info, StreamingContext context);Protected Sub New(info As SerializationInfo, context As StreamingContext)Examples
The following example creates a Page Margins instance and configures its left setting for a document workflow.
PageMargins pageMargins = new();
pageMargins.Left = 1.0;Dim pageMargins As New PageMargins()
pageMargins.Left = 1.0