if (Hline)
{
lineObj.Left = Twip.PixelToTwipX(this.X1);
lineObj.Right = lineObj.Left;
lineObj.Top = Twip.PixelToTwipY(this.Y1);
lineObj.Bottom = lineObj.Top;
lineObj.Right = Twip.PixelToTwipX(this.X2);
}
else
{
lineObj.Top = Twip.PixelToTwipY(this.Y1);
lineObj.Bottom = lineObj.Top;
lineObj.Left = Twip.PixelToTwipX(this.X1);
lineObj.Right = lineObj.Left;
lineObj.Bottom = Twip.PixelToTwipX(this.Y2);
}