How to determine the sketchsegment if it is arc or line using C#?

Hi guys,

Does anybody know how to determine if the sketchsegment is an arc, line?  I am having hard time on it. Any suggestion will be appreciated thanks in advance guys

SolidworksApi macros