如何知道系统滚动条的当前宽度? [英] How do I know the current width of system scrollbar?

查看:245
本文介绍了如何知道系统滚动条的当前宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如你所知,我们可以自定义滚动条宽的宽度显示属性 - >外观 - >高级 - >项目:滚动条。默认值是17,但是,我不能认为这是总是这样,有可能是我检索此值?

As you know, one can customize the width of the scrollbar width in Display Properties -> Appearance -> Advanced -> Item: ScrollBar. The default value is 17. However, I can't assume this is always the case, is it possible for me to retrieve this value?

推荐答案

System.Windows.Forms.SystemInformation 类成员:<一href=\"http://msdn.microsoft.com/en-us/library/system.windows.forms.systeminformation.horizontalscrollbarheight.aspx\"><$c$c>HorizontalScrollBarHeight和<一个href=\"http://msdn.microsoft.com/en-us/library/system.windows.forms.systeminformation.verticalscrollbarwidth.aspx\"><$c$c>VerticalScrollBarWidth.

这篇关于如何知道系统滚动条的当前宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆