EnablePageMargins Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Enables or disables the setting of page margins. If the property's value is true, the setting of page margins is enabled.
Syntax
public bool EnablePageMargins { get; set; }Public Property EnablePageMargins As BooleanExamples
The following example uses RulerBar.EnablePageMargins to configure enable page margins as part of the ruler bar workflow. The configured value is checked before the workflow continues.
rulerBar.EnablePageMargins = true;
if (rulerBar.EnablePageMargins)
{
Console.WriteLine("Ruler Bar: Enable Page Margins is enabled.");
}rulerBar.EnablePageMargins = True
If rulerBar.EnablePageMargins Then
Console.WriteLine("Ruler Bar: Enable Page Margins is enabled.")
End If