Class PageSettings
Represents to customize the appearance, width, and height of the Diagram page.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class PageSettings : IPageSettings, INotifyPropertyChanged, ISharedData, IDisposable
Constructors
PageSettings()
Initializes a new instance of the PageSettings class.
Declaration
public PageSettings()
Properties
Info
Gets or sets the info of the pagesettings.
Declaration
public IPageInfo Info { get; set; }
Property Value
| Type |
|---|
| IPageInfo |
MaximumPrintScale
Gets or sets the maximum print scale of a diagram.
Declaration
public double MaximumPrintScale { get; set; }
Property Value
| Type |
|---|
| System.Double |
MinimumPrintScale
Gets or sets the minimum print scale of a diagram.
Declaration
public double MinimumPrintScale { get; set; }
Property Value
| Type |
|---|
| System.Double |
MultiplePage
Gets or sets a value indicates whether the multiple page is enable. Its can be created to fit all Nodes and Connectors.
Declaration
public bool MultiplePage { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
OffPageMaxMargin
Gets or sets the offpage maximum margin of the pagesettings.
Declaration
public Thickness? OffPageMaxMargin { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Windows.Thickness> |
OffPageMinMargin
Gets or sets the offpage minimum margin of the pagesettings.
Declaration
public Thickness? OffPageMinMargin { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Windows.Thickness> |
PageBackground
Gets or sets the background color of diagram pages.
Declaration
public Brush PageBackground { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.Brush |
PageBorderBrush
Gets or sets the page border color.
Declaration
public Brush PageBorderBrush { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.Brush |
PageBorderThickness
Gets or sets the border thickness of diagram pages.
Declaration
public Thickness? PageBorderThickness { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Windows.Thickness> |
PageHeight
Gets or sets the height of a diagram Page.
Declaration
public double PageHeight { get; set; }
Property Value
| Type |
|---|
| System.Double |
PageOrientation
Gets or sets the value that represents the portrait or landscape.
Declaration
public PageOrientation PageOrientation { get; set; }
Property Value
| Type |
|---|
| PageOrientation |
PageWidth
Gets or sets the width of a diagram page.
Declaration
public double PageWidth { get; set; }
Property Value
| Type |
|---|
| System.Double |
PrintMargin
Gets or sets the printmargin of the pagesettings.
Declaration
public Thickness PrintMargin { get; set; }
Property Value
| Type |
|---|
| System.Windows.Thickness |
PrintScale
Gets or sets the print scale of a diagram.
Declaration
public double PrintScale { get; set; }
Property Value
| Type |
|---|
| System.Double |
ShowPageBreaks
Gets or sets a value indicates whether the page break is enable.
Declaration
public bool ShowPageBreaks { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Unit
Gets or sets the Unit of the pagesettings.
Declaration
public MeasurementUnit Unit { get; set; }
Property Value
| Type |
|---|
| MeasurementUnit |
Methods
AdjustPageOrigin()
Provided virtual method to customize the Origin of the Page based on Pixels and PageSize.
Declaration
public virtual void AdjustPageOrigin()
OnPropertyChanged(String)
Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(name).
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |
Explicit Interface Implementations
IDisposable.Dispose()
Defines the Dispose of the printing
Declaration
void IDisposable.Dispose()