How can I change the following code to draw a horizontal line instead of a rectangle? thanks for your help
// unfinished auction
if(showUnfinished)
{
if(rd.Key == currBarItem.l.Keys.Min())
{
if(rd.Value.av > 0.0 && rd.Value.bv > 0.0)
{
askBrush.Opacity = 0.05f;
RenderTarget.DrawRectangle(rect, askBrush);
rect.Width = rect.Width - 1;
rect.Height = rect.Height - 1;
RenderTarget.FillRectangle(rect, askBrush);
rect.Width = rect.Width + 1;
rect.Height = rect.Height + 1;
vec1.X = rect.X;
vec1.Y = y1 - 1f;
vec2.X = rect.X;
vec2.Y = y2;
askBrush.Opacity = 0.44f;
RenderTarget.DrawLine(vec1, vec2, askBrush, 1);
vec1.X = rect.X + cellWidth;
vec1.Y = y1 - 1f;
vec2.X = rect.X + cellWidth;
vec2.Y = y2;
RenderTarget.DrawLine(vec1, vec2, askBrush, 1);

Comment