Example #1
0
 /// <summary>
 /// The bottom edge of a staff.
 /// </summary>
 public BottomEdge(Staff staff, float left, float right, float gap)
     : base()
 {
     StafflineMetrics bottomStafflineMetrics = new StafflineMetrics(left, right,
         staff.Metrics.OriginY + (gap * (staff.NumberOfStafflines - 1)));
     Add(bottomStafflineMetrics);
     AddStaffMetrics(staff);
 }
Example #2
0
 /// <summary>
 /// The top edge of a staff.
 /// </summary>
 public TopEdge(Staff staff, float leftMargin, float rightMargin)
     : base()
 {
     StafflineMetrics topStaffLineMetrics = new StafflineMetrics(leftMargin, rightMargin, staff.Metrics.OriginY);
     Add(topStaffLineMetrics);
     AddStaffMetrics(staff);
 }