Skip to main content

width

since 0.9.6

Description

For layouts that grow from top to bottom (like page), it is required to specify a width for the renderer. The renderer will fit then the bars into this area for rendering. The alphaTab API object uses a link to the graphical user interface via a IUiFacade to get the available width for rendering. When using the low-level APIs this width must be specified manually.

For layouts that grow from left to right the width and height are usually calculated automatically based on the contents.

{
"unversionedId": "reference/scorerenderer/width",
"id": "reference/scorerenderer/width",
"title": "width",
"description": "The width of the rendered score",
"source": "@site/docs/reference/scorerenderer/width.mdx",
"sourceDirName": "reference/scorerenderer",
"slug": "/reference/scorerenderer/width",
"permalink": "/docs/reference/scorerenderer/width",
"editUrl": "https://github.com/CoderLine/alphaTabWebsite/tree/master/docs/reference/scorerenderer/width.mdx",
"tags": [],
"version": "current",
"frontMatter": {
"title": "width",
"description": "The width of the rendered score",
"sidebar_custom_props": {
"jQuery": false,
"dom": false,
"category": "Properties",
"since": "0.9.6"
}
},
"sidebar": "docs",
"previous": {
"title": "updateSettings",
"permalink": "/docs/reference/scorerenderer/updatesettings"
},
"next": {
"title": "AlphaSynth",
"permalink": "/docs/reference/alphasynth"
}
}
widthJavaScript
Width.net