如何从系统默认大小(如wordpad)填充字体大小的ComboBox [英] How to fill ComboBox with Font size from system default size like wordpad

查看:67
本文介绍了如何从系统默认大小(如wordpad)填充字体大小的ComboBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想知道如何在表单加载时填写组合框,字体大小如wordpad字体大小

hi i want to know about how to fill combo box on form load with font size like wordpad font size

推荐答案

嗨Sachin,



字体大小可以是任何双倍值。因此,您必须手动创建值,只需在表格加载中将默认值添加到组合框:



Hi Sachin,

Font sizes can be any double value. So you will have to create the values manually by just adding the defaults to your combobox in the form load:

yourComboBox.Items.Add(8.0);
yourComboBox.Items.Add(9.0);
yourComboBox.Items.Add(10.0);
yourComboBox.Items.Add(11.0);
yourComboBox.Items.Add(12.0);
yourComboBox.Items.Add(14.0);
yourComboBox.Items.Add(16.0);
yourComboBox.Items.Add(18.0);
yourComboBox.Items.Add(20.0);
yourComboBox.Items.Add(22.0);
yourComboBox.Items.Add(24.0);
yourComboBox.Items.Add(26.0);
yourComboBox.Items.Add(28.0);
yourComboBox.Items.Add(36.0);
yourComboBox.Items.Add(48.0);
yourComboBox.Items.Add(72.0);





问候



罗文



Regards

Rowan


这篇关于如何从系统默认大小(如wordpad)填充字体大小的ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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