ITextBuffer Methods
Visual Studio 2012
The ITextBuffer type exposes the following members.
| Name | Description | |
|---|---|---|
|
ChangeContentType | Changes the IContentType for this ITextBuffer. |
|
CheckEditAccess | Determines whether edit operations on this text buffer are permitted on the calling thread. |
|
CreateEdit() | Creates an ITextEdit object that handles compound edit operations on this buffer. |
|
CreateEdit(EditOptions, Nullable<Int32>, Object) | Creates an ITextEdit object that handles compound edit operations on this buffer. |
|
CreateReadOnlyRegionEdit | Creates an IReadOnlyRegionEdit object that handles adding or removing read-only regions from this buffer. |
|
Delete | Deletes a sequence of characters from the buffer. |
|
GetReadOnlyExtents | Gets a list of read-only regions that overlap the given span. |
|
Insert | Inserts the given text at the specified position in the ITextBuffer. |
|
IsReadOnly(Int32) | Determines whether a text insertion would be prohibited at the specified position due to an IReadOnlyRegion. |
|
IsReadOnly(Span) | Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion. |
|
IsReadOnly(Int32, Boolean) | Determines whether a text insertion would be prohibited at the specified position due to an IReadOnlyRegion. |
|
IsReadOnly(Span, Boolean) | Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion. |
|
Replace | Replaces a sequence of characters with different text. This is equivalent to first deleting the text to be replaced and then inserting the new text. |
|
TakeThreadOwnership | Claims ownership of this buffer for the current thread. All subsequent modifications of this ITextBuffer must be made from the current thread, or else an InvalidOperationException will be raised. |