GroupBox 中项目的对齐方式 [英] Alignment of Items in GroupBox

查看:37
本文介绍了GroupBox 中项目的对齐方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找解决方案,但在任何地方都找不到.

I have been looking around for a solution to this but fail to find it anywhere.

我目前正在为一家处理有特殊需要的儿童的组织制定管理计划.他们需要跟踪大量数据等.

I am currently making a management program for an organization which handles kids with special needs. They need to keep track of a lot of data, etc.

我使用拖放操作将数据放置在带有 TableLayout 的 GroupBox 中.但是元素不对齐.左侧似乎停靠在单元格的左上角,而右侧似乎停靠在单元格的右下角.

I have placed the data in a GroupBox with TableLayout using Drag N' Drop. However the elements do not align. The left side seems to be docked in the upper left corner of a cell while the right side seems to be docked in the lower right corner of a cell.

我将如何解决这个问题,使它们都集中在各自的单元格中?

How would I solve this so they are both centered in their respective cell?

推荐答案

放置在 TableLayout 单元格中的控件的对齐方式会受到这些控件的锚点设置的影响.

The alignment of controls placed in a TableLayout cell can be influenced by the anchor setting of these controls.

您可以通过将标签和文本框的锚点属性设置为来对齐您的控件居中.

You can align your controls Middle-Center by setting the Anchor property of your Labels and TextBoxes to None.

这篇关于GroupBox 中项目的对齐方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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