I'm trying to find the Indent Level for a current line so that I can perform some formatting that will involve inserting carriage returns. As such, I need the indent level so that I know how many tabs to add after inserting a carriage return.
I'm doing this like so:The problem is, even though I'm on the right line and that line is indented the value always comes back as 0, not matter how many tabs the line has.
Am I doing something wrong? Or is there an easier way to ensure that after a carriage return is inserted that the indent level is preserved?
I'm doing this like so:
Dim indentLevel As Integer = editor.SelectedView.CurrentDocumentLine.IndentAmount
Am I doing something wrong? Or is there an easier way to ensure that after a carriage return is inserted that the indent level is preserved?