PageFormat Object

Updated 2 Monaten ago

This documentation applies to plugins for 1.x only!


Documentation for 2.x+ is built into the Plugin Creator of Musescore.

( ⇒ In Musescore press Ctrl+Shift+P, then F1 to bring it up. )


Click here for Documentation for 3.x



Represents the format of pages in a Score Object .

The PageFormat object describing the page format of a score can be obtained with:
  var fmt = score.pageFormat;
where score is a Score Object object.

(Formally, a new PageFormat could be created with:
  var fmt = new PageFormat();
but such an object would be useless.)

See also:

Score Object .

Properties

Name Type Description
width double page width in mm (read-only).
height double page height in mm (read-only).
landscape bool true if the score has a landscape orientation (read-only).
twosided bool true if the score is two-sided (read-only).

Methods

None.