UpdateSelectedClass function

Learn technical details about the UpdateSelectedClass function.