C# Class Microsoft.VisualStudio.Editor.Mocks.TextBufferMock

Inheritance: ITextBuffer
Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
CancelAction ( TextContentChangingEventArgs e ) : void
ChangeContentType ( IContentType newContentType, object editTag ) : void
CheckEditAccess ( ) : bool
Clear ( ) : void
CreateEdit ( ) : ITextEdit
CreateEdit ( EditOptions options, int reiteratedVersionNumber, object editTag ) : ITextEdit
CreateReadOnlyRegionEdit ( ) : IReadOnlyRegionEdit
Delete ( Span deleteSpan ) : ITextSnapshot
GetReadOnlyExtents ( Span span ) : NormalizedSpanCollection
Insert ( int position, string text ) : ITextSnapshot
IsReadOnly ( Span span ) : bool
IsReadOnly ( Span span, bool isEdit ) : bool
IsReadOnly ( int position ) : bool
IsReadOnly ( int position, bool isEdit ) : bool
Replace ( Span replaceSpan, string replaceWith ) : ITextSnapshot
TakeThreadOwnership ( ) : void
TextBufferMock ( string content, string contentTypeName ) : System

Private Methods

Method Description
ApplyChange ( TextSnapshotMock snapshot ) : void

Method Details

CancelAction() public method

public CancelAction ( TextContentChangingEventArgs e ) : void
e TextContentChangingEventArgs
return void

ChangeContentType() public method

public ChangeContentType ( IContentType newContentType, object editTag ) : void
newContentType IContentType
editTag object
return void

CheckEditAccess() public method

public CheckEditAccess ( ) : bool
return bool

Clear() public method

public Clear ( ) : void
return void

CreateEdit() public method

public CreateEdit ( ) : ITextEdit
return ITextEdit

CreateEdit() public method

public CreateEdit ( EditOptions options, int reiteratedVersionNumber, object editTag ) : ITextEdit
options EditOptions
reiteratedVersionNumber int
editTag object
return ITextEdit

CreateReadOnlyRegionEdit() public method

public CreateReadOnlyRegionEdit ( ) : IReadOnlyRegionEdit
return IReadOnlyRegionEdit

Delete() public method

public Delete ( Span deleteSpan ) : ITextSnapshot
deleteSpan Span
return ITextSnapshot

GetReadOnlyExtents() public method

public GetReadOnlyExtents ( Span span ) : NormalizedSpanCollection
span Span
return NormalizedSpanCollection

Insert() public method

public Insert ( int position, string text ) : ITextSnapshot
position int
text string
return ITextSnapshot

IsReadOnly() public method

public IsReadOnly ( Span span ) : bool
span Span
return bool

IsReadOnly() public method

public IsReadOnly ( Span span, bool isEdit ) : bool
span Span
isEdit bool
return bool

IsReadOnly() public method

public IsReadOnly ( int position ) : bool
position int
return bool

IsReadOnly() public method

public IsReadOnly ( int position, bool isEdit ) : bool
position int
isEdit bool
return bool

Replace() public method

public Replace ( Span replaceSpan, string replaceWith ) : ITextSnapshot
replaceSpan Span
replaceWith string
return ITextSnapshot

TakeThreadOwnership() public method

public TakeThreadOwnership ( ) : void
return void

TextBufferMock() public method

public TextBufferMock ( string content, string contentTypeName ) : System
content string
contentTypeName string
return System