Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.v4.4 Assembly / Xceed.Chart Namespace / PrintManager Class / Margins Property
Example


In This Topic
    Margins Property (PrintManager)
    In This Topic
    The margins of the printed chart.
    Syntax
    'Declaration
     
    Public Property Margins As Margins
    'Usage
     
    Dim instance As PrintManager
    Dim value As Margins
     
    instance.Margins = value
     
    value = instance.Margins
    public Margins Margins {get; set;}
    Remarks
    Print margins in .NET are specified in hundreds of an inch. It is also recommended to check whether the print margins you specify are valid for the default paper size or the paper size you select.
    Example
    The following code will print the chart two inches away from the paper edges.
    ChartControl.PrintManager.Margins = new Margins(200, 200, 200, 200);
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also