开发者

CF - Align text in a Label

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜