How do I Convert outline to object in C#

I want to use C# to do a function.

It can Convert Line to an object.

How can I do?

Parents
No Data
Reply Children
No Data