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 RenderFinishedEventArgsProperties​
firstMasterBarIndex​
Gets or sets the index of the first masterbar that was rendered in this result.
- JavaScript
- C#
- Kotlin
firstMasterBarIndex: number;double FirstMasterBarIndex { get; set; }var firstMasterBarIndex: Doubleheight​
Gets or sets the height of the current rendering result.
- JavaScript
- C#
- Kotlin
height: number;double Height { get; set; }var height: Doubleid​
Gets or sets the unique id of this event args.
- JavaScript
- C#
- Kotlin
id: string;string Id { get; set; }var id: StringlastMasterBarIndex​
Gets or sets the index of the last masterbar that was rendered in this result.
- JavaScript
- C#
- Kotlin
lastMasterBarIndex: number;double LastMasterBarIndex { get; set; }var lastMasterBarIndex: DoublerenderResult​
Gets or sets the render engine specific result object which contains the rendered music sheet.
- JavaScript
- C#
- Kotlin
renderResult: unknown;object RenderResult { get; set; }var renderResult: AnyreuseViewport​
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).
- JavaScript
- C#
- Kotlin
reuseViewport: boolean;bool ReuseViewport { get; set; }var reuseViewport: BooleantotalHeight​
Gets or sets the currently known total height of the final music sheet.
- JavaScript
- C#
- Kotlin
totalHeight: number;double TotalHeight { get; set; }var totalHeight: DoubletotalWidth​
Gets or sets the currently known total width of the final music sheet.
- JavaScript
- C#
- Kotlin
totalWidth: number;double TotalWidth { get; set; }var totalWidth: Doublewidth​
Gets or sets the width of the current rendering result.
- JavaScript
- C#
- Kotlin
width: number;double Width { get; set; }var width: Doublex​
Gets or sets the x position of the current rendering result.
- JavaScript
- C#
- Kotlin
x: number;double X { get; set; }var x: Doubley​
Gets or sets the y position of the current rendering result.
- JavaScript
- C#
- Kotlin
y: number;double Y { get; set; }var y: Double