TextMeshPro DropdownMenu thru code.

How can you use the textmeshpro dropdownmenu thru code?
I am making a graphics options menu but i dont know how to access it thru code.
Is it the same way as unity’s drop down menu?

already know it!