Skip to main content

alphaTab.rendering.RenderFinishedEventArgs

This eventargs define the details about the rendering and layouting process and are provided whenever a part of of the music sheet is rendered.

 class RenderFinishedEventArgs

Properties​

firstMasterBarIndex​

Gets or sets the index of the first masterbar that was rendered in this result.

firstMasterBarIndex: number;

height​

Gets or sets the height of the current rendering result.

height: number;

id​

Gets or sets the unique id of this event args.

id: string;

lastMasterBarIndex​

Gets or sets the index of the last masterbar that was rendered in this result.

lastMasterBarIndex: number;

renderResult​

Gets or sets the render engine specific result object which contains the rendered music sheet.

renderResult: unknown;

reuseViewport​

A value indicating whether the currently rendered viewport can be reused. If set to true, the viewport does NOT need to be cleared as a similar content will be rendered. If set to false, the viewport and any visual partials should be cleared as it could lead to UI disturbances otherwise.

The viewport can be typically used on resize renders or if the user supplied a rendering hint that the new score is "similar" to the old one (e.g. in case of live-editing).

reuseViewport: boolean;

totalHeight​

Gets or sets the currently known total height of the final music sheet.

totalHeight: number;

totalWidth​

Gets or sets the currently known total width of the final music sheet.

totalWidth: number;

width​

Gets or sets the width of the current rendering result.

width: number;

x​

Gets or sets the x position of the current rendering result.

x: number;

y​

Gets or sets the y position of the current rendering result.

y: number;