The ShapeStyleEx.setLineStyleIndex does not take any enumerated value. Please let me know If you have any further queries.
Please accept my apology for late response. The value parameter of setLineStyleIndex function is long type. I have asked for the details of ShapeStypeEx class from our development team. As soon as, any information is shared by them, I will be more then happy to share that with you.