The following code sets the picture alignment of the current cell to right, center using the constant value.
Sub Form1_Load ModHFGrid1.CellPictureAlignment =_ flexAlignRightCenter End Sub