SWT的GridLayout一些参数解释

1. GridLayout类的说明
GridLayout在包org.eclipse.swt.layout中,各参数意义如下:
1. numColumns指定布局器中的列数
2. horizontalSpacing 各列之间的距离
3. verticalSpacing各行之间的距离
4. makeColumnsEqualWidth 指定是否各列宽度相等
5. marginBottom指定容器底部要留出的空白像素
6. marginHeight指定容器底部和顶部要留出的空白像素(和marginBottom冲突时,取底部边距取两者中的大值)
7. marginTop
8. marginLeft
9. marginRight
10. marginWidth

原文地址:https://www.cnblogs.com/wangjiyuan/p/layoutdata.html