ISmartIndent.GetDesiredIndentation(ITextSnapshotLine) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the desired indentation of an ITextSnapshotLine.
public:
Nullable<int> GetDesiredIndentation(Microsoft::VisualStudio::Text::ITextSnapshotLine ^ line);
public int? GetDesiredIndentation (Microsoft.VisualStudio.Text.ITextSnapshotLine line);
abstract member GetDesiredIndentation : Microsoft.VisualStudio.Text.ITextSnapshotLine -> Nullable<int>
Public Function GetDesiredIndentation (line As ITextSnapshotLine) As Nullable(Of Integer)
Parameters
- line
- ITextSnapshotLine
The line for which to compute the indentation.
Returns
The number of spaces to place at the start of the line, or null if there is no desired indentation.