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

Inheritance: ITextBuffer
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ApplyChange ( TextSnapshotMock snapshot ) : void

Method Details

CancelAction() public méthode

public CancelAction ( TextContentChangingEventArgs e ) : void
e TextContentChangingEventArgs
Résultat void

ChangeContentType() public méthode

public ChangeContentType ( IContentType newContentType, object editTag ) : void
newContentType IContentType
editTag object
Résultat void

CheckEditAccess() public méthode

public CheckEditAccess ( ) : bool
Résultat bool

Clear() public méthode

public Clear ( ) : void
Résultat void

CreateEdit() public méthode

public CreateEdit ( ) : ITextEdit
Résultat ITextEdit

CreateEdit() public méthode

public CreateEdit ( EditOptions options, int reiteratedVersionNumber, object editTag ) : ITextEdit
options EditOptions
reiteratedVersionNumber int
editTag object
Résultat ITextEdit

CreateReadOnlyRegionEdit() public méthode

public CreateReadOnlyRegionEdit ( ) : IReadOnlyRegionEdit
Résultat IReadOnlyRegionEdit

Delete() public méthode

public Delete ( Span deleteSpan ) : ITextSnapshot
deleteSpan Span
Résultat ITextSnapshot

GetReadOnlyExtents() public méthode

public GetReadOnlyExtents ( Span span ) : NormalizedSpanCollection
span Span
Résultat NormalizedSpanCollection

Insert() public méthode

public Insert ( int position, string text ) : ITextSnapshot
position int
text string
Résultat ITextSnapshot

IsReadOnly() public méthode

public IsReadOnly ( Span span ) : bool
span Span
Résultat bool

IsReadOnly() public méthode

public IsReadOnly ( Span span, bool isEdit ) : bool
span Span
isEdit bool
Résultat bool

IsReadOnly() public méthode

public IsReadOnly ( int position ) : bool
position int
Résultat bool

IsReadOnly() public méthode

public IsReadOnly ( int position, bool isEdit ) : bool
position int
isEdit bool
Résultat bool

Replace() public méthode

public Replace ( Span replaceSpan, string replaceWith ) : ITextSnapshot
replaceSpan Span
replaceWith string
Résultat ITextSnapshot

TakeThreadOwnership() public méthode

public TakeThreadOwnership ( ) : void
Résultat void

TextBufferMock() public méthode

public TextBufferMock ( string content, string contentTypeName ) : System
content string
contentTypeName string
Résultat System