Hi,
I wnat to set the font size for following code...
this.listView1.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Text
Thanks in advance.
Regards,
Shilpa
Hi,
I wnat to set the font size for following code...
this.listView1.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Text
Thanks in advance.
Regards,
Shilpa
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott LyslePosted Oct 6, 2007, 4:03 AM
You can do something like this to apply a font style to an existing font:
this
.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font = new Font(lstView.Font, FontStyle.Bold);Or you can define the font using something like one of these:
this.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font=
new Font("Verdana", 17);this.lstView.Items[i].SubItems[m_columnList.IndexOfValue("Address") + 1].Font=
new Font("Calista", 14, FontStyle.Bold);