다음을 통해 공유


ISmartIndent.GetDesiredIndentation 메서드

ITextSnapshotLine에 필요한 들여쓰기를 가져옵니다.

네임스페이스:  Microsoft.VisualStudio.Text.Editor
어셈블리:  Microsoft.VisualStudio.Text.UI(Microsoft.VisualStudio.Text.UI.dll)

구문

‘선언
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>

매개 변수

반환 값

형식: Nullable<Int32>
줄의 시작에 배치 하는 공백 수를 또는 nullNull 참조(Visual Basic의 경우 Nothing) 있는 경우 원하는 들여쓰기 사용 안 함.

.NET Framework 보안

참고 항목

참조

ISmartIndent 인터페이스

Microsoft.VisualStudio.Text.Editor 네임스페이스