다음을 통해 공유


IEditorOperations.InsertProvisionalText Method

Inserts the given text at the current caret position as provisional text.

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

Syntax

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

Parameters

  • text
    Type: System.String
    The text to be inserted in the buffer.

Return Value

Type: System.Boolean
true if the edit succeeded, otherwise false.

Exceptions

Exception Condition
ArgumentNullException

text is nulla null reference (Nothing in Visual Basic).

Remarks

Provisional text is automatically replaced by subsequent InsertText or InsertProvisionalText calls.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace