vb.net获取当前listview行的字体样式 [英] vb.net Get current listview row font style
本文介绍了vb.net获取当前listview行的字体样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是带有listview控件的Visual Studio 2013,vb.net 4.5。
我可以通过以下方式设置特定列表视图行的字体:
lvApplications.Items.Item(lIndex).Font = New Font(lvApplications.Font,FontStyle .Bold)
如何检查特定行以确定字体是否设置为BOLD?
谢谢
Hi,
I am using Visual Studio 2013, vb.net 4.5 with a listview control.
I can set the font of a specific listview row via:
lvApplications.Items.Item(lIndex).Font = New Font(lvApplications.Font, FontStyle.Bold)
How can I check a specific row to determine if the font is set to BOLD?
Thanks
推荐答案
嗯...没有检查一下后点数后IntelliSense告诉你的内容
uhm... haven't checked what IntelliSense tells ya after putting a dot after
vApplications.Items.Item(lIndex).Font
?
First Item ..'Bold'Booolean标志,准确地告诉你那个。
?
First Item.. 'Bold' Booolean flag that tells you exactly that.
vApplications.Items.Item(lIndex).Font.Bold
这篇关于vb.net获取当前listview行的字体样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文