Udostępnij za pośrednictwem


EditSpan(TextSpan, String) Constructor

Definition

Construct a new edit span object

public:
 EditSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan toReplace, System::String ^ insertText);
public:
 EditSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan toReplace, Platform::String ^ insertText);
 EditSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan toReplace, std::wstring const & insertText);
public EditSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan toReplace, string insertText);
new Microsoft.VisualStudio.Package.EditSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> Microsoft.VisualStudio.Package.EditSpan
Public Sub New (toReplace As TextSpan, insertText As String)

Parameters

toReplace
TextSpan

The text span to remove from the buffer (can be empty)

insertText
String

The text to insert in it's place (can be null)

Remarks

See the Remarks section of the EditSpan class for a description of how to specify the different edit operations.

Applies to