在运行时设置标签大小? [英] Set Label size at runtime?

查看:81
本文介绍了在运行时设置标签大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取当前形式的所有标签并在运行时为所有标签设置相同的大小?

How to get all the labels in the present form and set same size for all the labels at run time?

推荐答案

如果您提供了您的代码,则它将要更清楚.

这是一些示例代码

If u provide ur code then it will be more clear.

Here is some sample code

<grid>
        <grid.rowdefinitions>
            <rowdefinition height="Auto" />
            <rowdefinition height="Auto" />
            <rowdefinition height="Auto" />
        </grid.rowdefinitions>
        <grid.columndefinitions>
            <columndefinition width="Auto" />
            <columndefinition width="Auto" />
        </grid.columndefinitions>
   <label grid.row="0" />
   <Label Grid.Row="1"/>
   <Label Grid.Row="2"/>
</grid


>


希望对您有帮助.


>


Hope it will help u.


查看此主题,可能会对您有所帮助
http://stackoverflow.com/questions/2454572/how-to-change-label-size-dynamicly-using-numericupdown-in-c-sharp [ http://stackoverflow.com/questions/2907827/在c-sharp上运行时动态创建的宽度标签 [ ^ ]
See this thread, might help you
http://stackoverflow.com/questions/2454572/how-to-change-label-size-dynamically-using-numericupdown-in-c-sharp[^]
http://stackoverflow.com/questions/2907827/width-of-dynamic-created-label-in-runtime-on-c-sharp[^]


这篇关于在运行时设置标签大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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