public virtual void Draw() { if (button == null || text == null) { return; } button.Draw(); text.Draw(); }
public virtual void Draw() { if (button == null || text == null) { return; } button.Draw(); text.Draw(); if (UnderlinedAbove && underlineAbove != null) { underlineAbove.Draw(); } if (UnderlinedBelow && underlineBelow != null) { underlineBelow.Draw(); } }
public override void Draw(Size offset) { if (rectHeader == null || textHeader == null || (HasFooter && (rectFooter == null || textFooter == null))) { return; } if (HasFooter) { rectFooter.Draw(offset); textFooter.Draw(offset); } rectHeader.Draw(offset); textHeader.Draw(offset); for (int i = 0; i < ItemDrawCount; i++) { Items[i + CurrentScrollOffset].Draw(offset); } DrawScrollArrows(CurrentScrollOffset > 0, CurrentScrollOffset < MaxScrollOffset, offset); }