convert enum AlignmentFlag into enum class