다음을 통해 공유


IEditorOperations.InsertText 메서드

지정된 텍스트를 현재 캐럿 위치에 삽입합니다.

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

구문

‘선언
Function InsertText ( _
    text As String _
) As Boolean
bool InsertText(
    string text
)
bool InsertText(
    String^ text
)
abstract InsertText : 
        text:string -> bool
function InsertText(
    text : String
) : boolean

매개 변수

  • text
    형식: String

    버퍼에 삽입할 텍스트입니다.

반환 값

형식: Boolean
편집이 성공하면 true이고, 그렇지 않으면 false입니다.

예외

예외 조건
ArgumentNullException

text가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

.NET Framework 보안

참고 항목

참조

IEditorOperations 인터페이스

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