Initializes a new instance of the EditSpan class.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Sub New ( _
toReplace As TextSpan, _
insertText As String _
)
'使用
Dim toReplace As TextSpan
Dim insertText As String
Dim instance As New EditSpan(toReplace, _
insertText)
public EditSpan(
TextSpan toReplace,
string insertText
)
public:
EditSpan(
TextSpan toReplace,
String^ insertText
)
public function EditSpan(
toReplace : TextSpan,
insertText : String
)
Parameters
toReplace
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] A TextSpan object describing the span to affect.
insertText
Type: System.String[in] The text to insert/replace.
Remarks
See the Remarks section of the EditSpan class for a description of how to specify the different edit operations.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.