ISmartIndent.GetDesiredIndentation Method
Gets the desired indentation of an ITextSnapshotLine.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function GetDesiredIndentation ( _
line As ITextSnapshotLine _
) As Nullable(Of Integer)
Nullable<int> GetDesiredIndentation(
ITextSnapshotLine line
)
Nullable<int> GetDesiredIndentation(
ITextSnapshotLine^ line
)
abstract GetDesiredIndentation :
line:ITextSnapshotLine -> Nullable<int>
function GetDesiredIndentation(
line : ITextSnapshotLine
) : Nullable<int>
Parameters
line
Type: Microsoft.VisualStudio.Text.ITextSnapshotLineThe line for which to compute the indentation.
Return Value
Type: Nullable<Int32>
The number of spaces to place at the start of the line, or nulla null reference (Nothing in Visual Basic) if there is no desired indentation.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.