How to get the height of a cylinder using IFace::ISurface::CylinderParams ?

I'm creating a MacroFeature and I'm using a selection filter to get cylindrical faces only, but once I got such face, I want to calculate the height of the cylinder. Any ideas?

SolidworksApi macros