| Contents > SharpPlot > Methods | Index |
SharpPlot.NextNote Method (Double)
Find the correct baseline for a follow-on note when the previous note may have been wrapped. The result is suitable for passing to DrawNote as the second argument (the y-position).
public double NextNote(
double headspace
);
Example
sp.DrawNote("Hello from a wrapped note to check vertical spacing",2,20,0,1); next = sp.NextNote(12); // 12pt headspace sp.DrawNote("Hello from another note",2,next);
The argument may be zero (to have the normal line-spacing applied) or may give additional inter-paragraph space in points. The return value will be in chart co-ordinates unless the note style has been set to Absolute in which case it will be in points.
