Detect Style Spline

How can I detect if a selected Sketch segment is a Spline or Style Spline?

SolidworksApi macros