alphaTab.model.Bar
Description
A bar is a single block within a track, also known as Measure.
 class BarProperties
| barLineLeft | The bar line to draw on the left side of the bar. | 
| barLineRight | The bar line to draw on the right side of the bar. | 
| clef | Gets or sets the clef on this bar. | 
| clefOttava | Gets or sets the ottava applied to the clef. | 
| displayScale | A relative scale for the size of the bar when displayed. The scale is relative | 
| displayWidth | An absolute width of the bar to use when displaying in single track display scenarios. | 
| filledVoices | Gets the number of voices which have content within this stuff. | 
| hasChanges | Whether this bar has any changes applied which are not related to the voices in it. | 
| id | Gets or sets the unique id of this bar. | 
| index | Gets or sets the zero-based index of this bar within the staff. | 
| isEmpty | Whether this bar is fully empty (not even having rests). | 
| isMultiVoice | Gets a value indicating whether this bar contains multiple voices with notes. | 
| isRestOnly | Whether this bar is empty or has only rests. | 
| keySignature | Gets or sets the key signature used on all bars. | 
| keySignatureType | Gets or sets the type of key signature (major/minor) | 
| masterBar | |
| nextBar | Gets or sets the next bar that comes after this bar. | 
| previousBar | Gets or sets the previous bar that comes before this bar. | 
| simileMark | Gets or sets the simile mark on this bar. | 
| staff | Gets or sets the reference to the parent staff. | 
| style | The style customizations for this item. | 
| sustainPedals | The sustain pedal markers within this bar. | 
| voices | Gets or sets the list of voices contained in this bar. | 
Methods
| addVoice(Voice) | |
| calculateDuration() | |
| finish(Settings, Map<string, unknown> | null) | |
| getActualBarLineLeft(boolean) | The bar line to draw on the left side of the bar with an "automatic" type resolved to the actual one. | 
| getActualBarLineRight() | The bar line to draw on the right side of the bar with an "automatic" type resolved to the actual one. |