code: def setSnapToGrid( self, state = True ):
          
          self._xSnapToGrid = state
          self._ySnapToGrid = state
docs: Sets the snap to grid property for both the x and y directions \
          based on the inputed value.
          
          :param      state   <bool>