The <page-layout> element

Parent elements: <defaults>, <print>

Page layout can be defined both in score-wide <defaults> and in the <print> element. If no <page-layout> element is present in the <defaults> element, default page layout values are chosen by the application.

When used in the <print> element, the <page-layout> element affects the appearance of the current page only. All other pages use the default values as determined by the <defaults> element. If any child elements are missing from the <page-layout> element in a <print> element, the values determined by the element are used there as well.

https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/page-layout/

Hierarchy

  • PageLayout

Implements

Constructors

Properties

schema: {
    attributes: {};
    contents: readonly [{
        type: "optional";
        value: typeof PageHeight;
    }, {
        type: "optional";
        value: typeof PageWidth;
    }, {
        label: "page-margins";
        type: "label";
        value: {
            choices: readonly [readonly [], readonly [typeof PageMargins], readonly [typeof PageMargins, typeof PageMargins]];
            type: "choices";
        };
    }];
    name: "page-layout";
} = PageLayout.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "optional";
          value: typeof PageHeight;
      }, {
          type: "optional";
          value: typeof PageWidth;
      }, {
          label: "page-margins";
          type: "label";
          value: {
              choices: readonly [readonly [], readonly [typeof PageMargins], readonly [typeof PageMargins, typeof PageMargins]];
              type: "choices";
          };
      }]
    • Readonly name: "page-layout"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "optional";
            value: typeof PageHeight;
        }, {
            type: "optional";
            value: typeof PageWidth;
        }, {
            label: "page-margins";
            type: "label";
            value: {
                choices: readonly [readonly [], readonly [typeof PageMargins], readonly [typeof PageMargins, typeof PageMargins]];
                type: "choices";
            };
        }];
        name: "page-layout";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "optional";
            value: typeof PageHeight;
        }, {
            type: "optional";
            value: typeof PageWidth;
        }, {
            label: "page-margins";
            type: "label";
            value: {
                choices: readonly [readonly [], readonly [typeof PageMargins], readonly [typeof PageMargins, typeof PageMargins]];
                type: "choices";
            };
        }]
      • Readonly name: "page-layout"

      Methods

      Generated using TypeDoc