# setMaximumHorizontalPosition method

void setMaximumHorizontalPosition(

1. int maximumHorizontalPosition

)

Sets the value indicating if the head is correctly centered horizontally. For ICAO compliance, the value must be in the range 45 to 55. Hint: Default value is 55.

param maximumHorizontalPosition Value indicating if the head is correctly centered horizontally. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setMaximumHorizontalPosition(int maximumHorizontalPosition) {
      var err = faceSDK.id3FacePortraitProcessor_SetMaximumHorizontalPosition(_pHandle.value, maximumHorizontalPosition);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }