Hello,
wondering if there is a way to underline a string, which will go into a list and stay underlined? is there anyway to do that?
underline string
Started by Siten0308, Apr 17 2010 12:58 AM
3 replies to this topic
#1
Posted 17 April 2010 - 12:58 AM
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)
|
|
|
#2
Posted 17 April 2010 - 10:45 AM
I doubt whether we can directly underline a string directly... But you can do something like this.
Hope this helps...
static void Main(string[] args)
{
string asd = new string('\u0332', 7);
List<string> name = new List<string>();
name.Add("Example");
name.Add(asd);
name.Add("Test");
foreach (string abc in name)
{
Console.WriteLine(abc);
}
Console.Read();
}
Hope this helps...
#3
Posted 17 April 2010 - 09:58 PM
thanks for the reply back,
sorry but also wanted to ask, besides under line, is it possible to color a string, or a certain row in a list or listviewitem?such as
listviewitem lvi = new listviewitem()
lvi.text = row.column1.color = red.
etc. etc.
is that anyway possible or how about just coloring a certain column etc instead of a row? let me know if its possible to do either or both.
sorry but also wanted to ask, besides under line, is it possible to color a string, or a certain row in a list or listviewitem?such as
listviewitem lvi = new listviewitem()
lvi.text = row.column1.color = red.
etc. etc.
is that anyway possible or how about just coloring a certain column etc instead of a row? let me know if its possible to do either or both.
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)
#4
Posted 17 April 2010 - 10:12 PM
I don't have much idea about it... But you can check this link: ListViewItem.ListViewSubItemCollection.Add Method (String, Color, Color, Font) (System.Windows.Forms)
this might help you... If you find the solution, do let us know...
this might help you... If you find the solution, do let us know...


Sign In
Create Account


Back to top









