如何使得MSFLEXGRID控件中的文字都左对齐!

解决方案 »

  1.   

    MSFlexGrid1.ColAlignment(1) = 1    '设置列的对齐方式左对齐MSFlexGrid1.CellAlignment = 4   '对其方式为中间中间
    1                               '对其方式为左对齐
    6                               '对其方式为右对齐
      

  2.   

    很简单吗MSFlexGrid1.ColAlignment(1) = 1就行了.
      

  3.   

    设置整列左对齐:
    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.