Compartir a través de


ISmartIndentationService.GetDesiredIndentation Method

Gets the desired indentation of an ITextSnapshotLine as displayed in ITextView.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaración
Function GetDesiredIndentation ( _
    textView As ITextView, _
    line As ITextSnapshotLine _
) As Nullable(Of Integer)
Nullable<int> GetDesiredIndentation(
    ITextView textView,
    ITextSnapshotLine line
)
Nullable<int> GetDesiredIndentation(
    ITextView^ textView, 
    ITextSnapshotLine^ line
)
abstract GetDesiredIndentation : 
        textView:ITextView * 
        line:ITextSnapshotLine -> Nullable<int> 
function GetDesiredIndentation(
    textView : ITextView, 
    line : ITextSnapshotLine
) : Nullable<int>

Parameters

Return Value

Type: System.Nullable<Int32>
The desired indentation

Remarks

This service consumes ISmartIndentProvider objects to determine how to perform the indentation.

.NET Framework Security

See Also

Reference

ISmartIndentationService Interface

Microsoft.VisualStudio.Text.Editor Namespace