开发者

CF - Align text in a Label

开发者 https://www.devze.com 2023-01-14 18:52 出处:网络
Is there a way to align a text in 开发者_如何学Goa label to its absolute center (compact framework)?

Is there a way to align a text in 开发者_如何学Goa label to its absolute center (compact framework)? Not a topCenter but a center of the label.

I want to avoid putting a label into a panel (container)...


The underlying OS (Windows CE) doesn't support vertical centering of statics, which is why it's not supported in the CF. You'll have to eitehr manually center the label or just use DrawText on the "parent" and draw in the text you want without any underlying Label control at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号