How to get if a selected component is transparent or not in vba

Hello, I'm wondering how to get whether a selected component is transparent or not. I looked in the Api help and the display state example was a little out of my league. I was wondering how this could be done. I don't need any other info on the display state, just if it's transparent or not. Any help would be appreciated. Thanks.

SolidworksApi macros