Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the EditSpan class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Sub New ( _
toReplace As TextSpan, _
insertText As String _
)
public EditSpan(
TextSpan toReplace,
string insertText
)
public:
EditSpan(
TextSpan toReplace,
String^ insertText
)
new :
toReplace:TextSpan *
insertText:string -> EditSpan
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.
.NET Framework Security
- 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.