Syntax for changing text properties in a ListView
-
13-03-2021 - |
Pregunta
I have about 25 entries in a ListView by using:
ListView1.AddTwoLinesAndBitmap2("Entry Title","Entry Description",Bitmap1,1)
I'm looking to change the text size and color of the Entry Title and Entry Description. I tried setting properties as if it were a single line but had no luck. I'm not sure how to reference the first line and second individually.
Solución 2
Solved this by using TwoLinesAndBitmap instead of TwoLinesAndBitmap2... does TwoLinesAndBitmap2
Otros consejos
To modify the title appearance you should change:
Dim lv As ListView
lv.TwoLinesAndBitmap.Label.TextSize = 15
It doesn't matter if you use AddTwoLinesAndBitmap or AddTwoLinesAndBitmap2.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow