CellAlignment Property Example

The following example sets the text alignment for each cell to left center using the constant setting.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

Sub Form1_Load ()
   MSHFlexGrid1.CellAlignment =flexAlignLeftCenter
End Sub