How can I change the margins for a grid?

In CGXProperties:

   void    GetMargins(int& top, int& left, int& bottom, int& right);
   void    SetMargins(int top, int left, int bottom, int right);

(Margins are set in pixel values)