在缓冲区中编辑点的当前位置插入给定字符串。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
Sub Insert ( _
    Text As String _
)
void Insert(
    string Text
)
void Insert(
    [InAttribute] String^ Text
)
abstract Insert : 
        Text:string -> unit 
function Insert(
    Text : String
)
参数
- Text
 类型:System.String
 必选。插入文本缓冲区的文本。必须是 Unicode 格式字符串。
备注
编辑点移过插入点。
示例
Sub InsertExample()
  ' Before running this example, open a text document.
  Dim objTD As TextDocument
  Dim objEP As EditPoint
  objTD = DTE.ActiveDocument.Object("TextDocument")
  objEP = objTD.StartPoint.CreateEditPoint
  objEP.Insert("Test")
End Sub
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。