AlphaTab.Rendering.Utils.StaveGroupBounds.AddBar C# (CSharp) Method

AddBar() public method

public AddBar ( MasterBarBounds bounds ) : void
bounds MasterBarBounds
return void
        public void AddBar(MasterBarBounds bounds)
        {
            bounds.StaveGroupBounds = this;
            Bars.Add(bounds);
        }

Usage Example

Example #1
0
 public void AddMasterBar(MasterBarBounds bounds)
 {
     if (bounds.StaveGroupBounds == null)
     {
         bounds.StaveGroupBounds        = _currentStaveGroup;
         _masterBarLookup[bounds.Index] = bounds;
         _currentStaveGroup.AddBar(bounds);
     }
     else
     {
         _masterBarLookup[bounds.Index] = bounds;
     }
 }
All Usage Examples Of AlphaTab.Rendering.Utils.StaveGroupBounds::AddBar