Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / CompatibilityOptions Class / TopLevelPositionRelativeToPageMargins Property

In This Topic
    TopLevelPositionRelativeToPageMargins Property
    In This Topic
    Gets or sets a value indicating whether absolute coordinates of top-level objects in the document are relative to page margins or to physical page bounds.

    The default value of this property is false, which indicates the traditional behavior with coordinates relative to page edges. If set to true, coordinates are considered relative to page margins.

    For instance, if this property is false (default), all page margins are 1 in, and a top-level object's X coordinate is specified as ".5in", the object would be located 0.5in from the left edge of the page - i.e. in the middle of the left page margin.

    If this property is set to true, the same object would be located 0.5in to the right of the left page margin - 1.5in from the left edge of the page.

    Syntax
    'Declaration
     
    Public Property TopLevelPositionRelativeToPageMargins As Boolean
    public bool TopLevelPositionRelativeToPageMargins {get; set;}
    See Also