valueOf

Utility function to get TextPitchAlignment instance from given value.