PDA

View Full Version : سوال: توضیح یک تکه کد



elderado
دوشنبه 27 خرداد 1392, 16:30 عصر
با سلام و خسته نباشید خدمت دوستان و مهندسین عزیز
کسی میتونه این تکه کد رو برای من توضیح بده؟

s = "__________________________________________________ ___"+ متن مورد نظر + " _________________________________________";
e.Graphics.DrawString(s, new Font(dgv.Font, FontStyle.Bold),
Brushes.Black, e.MarginBounds.Left + (e.MarginBounds.Width -
e.Graphics.MeasureString(s, new Font(dgv.Font,
FontStyle.Bold), e.MarginBounds.Width).Width), e.MarginBounds.Top -
e.Graphics.MeasureString(PrintTitle, new Font(new Font(dgv.Font,
FontStyle.Bold), FontStyle.Bold), e.MarginBounds.Width).Height - 13);

printtitle
اسم فرمه که از یه جای دیگه میاد و قراره به جای "متن مورد نظر" قرار بگیره