Get the number of lines in a paragraph

Capture1

I need to get number of lines in this para how could i do this

2 Likes

@soumi_soumiya

OutStr=InputStr.Split({Environment.NewLine}, StringSplitOptions.None).Count.ToString

3 Likes

split the string based on newline char (environment.newline)

numberofline = InputString.Split(vblf).Count

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.