设置整列左对齐: MSFlexGrid1.ColAlignment(colindex) = 1 设置单个cell的对齐: 。ColAlignment(Index) [=value] value 的取值: 常数 值 对齐方式 flexAlignLeftTop 0 The column content is aligned left, top. flexAlignLeftCenter 1 Default for strings. The column content is aligned left, center. flexAlignLeftBottom 2 The column content is aligned left, bottom. flexAlignCenterTop 3 The column content is aligned center, top. flexAlignCenterCenter 4 The column content is aligned center, center. flexAlignCenterBottom 5 The column content is aligned center, bottom. flexAlignRightTop 6 The column content is aligned right, top. flexAlignRightCenter 7 Default for numbers. The column content is aligned right, center. flexAlignRightBottom 8 The column content is aligned right, bottom. flexAlignGeneral 9 The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.
1 '对其方式为左对齐
6 '对其方式为右对齐
MSFlexGrid1.ColAlignment(colindex) = 1
设置单个cell的对齐:
。ColAlignment(Index) [=value]
value 的取值:
常数 值 对齐方式
flexAlignLeftTop 0 The column content is aligned left, top.
flexAlignLeftCenter 1 Default for strings. The column content is aligned left, center.
flexAlignLeftBottom 2 The column content is aligned left, bottom.
flexAlignCenterTop 3 The column content is aligned center, top.
flexAlignCenterCenter 4 The column content is aligned center, center.
flexAlignCenterBottom 5 The column content is aligned center, bottom.
flexAlignRightTop 6 The column content is aligned right, top.
flexAlignRightCenter 7 Default for numbers. The column content is aligned right, center.
flexAlignRightBottom 8 The column content is aligned right, bottom.
flexAlignGeneral 9 The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.