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

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

Public Methods

Method Description
BufferGraphMock ( ITextBuffer textBuffer ) : System
CreateMappingPoint ( SnapshotPoint point, PointTrackingMode trackingMode ) : IMappingPoint
CreateMappingSpan ( SnapshotSpan span, SpanTrackingMode trackingMode ) : IMappingSpan
GetTextBuffers ( Predicate match ) : Collection
MapDownToBuffer ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextBuffer targetBuffer ) : NormalizedSnapshotSpanCollection
MapDownToBuffer ( SnapshotPoint position, PointTrackingMode trackingMode, ITextBuffer targetBuffer, PositionAffinity affinity ) : SnapshotPoint?
MapDownToFirstMatch ( SnapshotSpan span, SpanTrackingMode trackingMode, Predicate match ) : NormalizedSnapshotSpanCollection
MapDownToFirstMatch ( SnapshotPoint position, PointTrackingMode trackingMode, Predicate match, PositionAffinity affinity ) : SnapshotPoint?
MapDownToInsertionPoint ( SnapshotPoint position, PointTrackingMode trackingMode, Predicate match ) : SnapshotPoint?
MapDownToSnapshot ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextSnapshot targetSnapshot ) : NormalizedSnapshotSpanCollection
MapDownToSnapshot ( SnapshotPoint position, PointTrackingMode trackingMode, ITextSnapshot targetSnapshot, PositionAffinity affinity ) : SnapshotPoint?
MapUpToBuffer ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextBuffer targetBuffer ) : NormalizedSnapshotSpanCollection
MapUpToBuffer ( SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer ) : SnapshotPoint?
MapUpToFirstMatch ( SnapshotSpan span, SpanTrackingMode trackingMode, Predicate match ) : NormalizedSnapshotSpanCollection
MapUpToFirstMatch ( SnapshotPoint point, PointTrackingMode trackingMode, Predicate match, PositionAffinity affinity ) : SnapshotPoint?
MapUpToSnapshot ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextSnapshot targetSnapshot ) : NormalizedSnapshotSpanCollection
MapUpToSnapshot ( SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextSnapshot targetSnapshot ) : SnapshotPoint?

Method Details

BufferGraphMock() public method

public BufferGraphMock ( ITextBuffer textBuffer ) : System
textBuffer ITextBuffer
return System

CreateMappingPoint() public method

public CreateMappingPoint ( SnapshotPoint point, PointTrackingMode trackingMode ) : IMappingPoint
point SnapshotPoint
trackingMode PointTrackingMode
return IMappingPoint

CreateMappingSpan() public method

public CreateMappingSpan ( SnapshotSpan span, SpanTrackingMode trackingMode ) : IMappingSpan
span SnapshotSpan
trackingMode SpanTrackingMode
return IMappingSpan

GetTextBuffers() public method

public GetTextBuffers ( Predicate match ) : Collection
match Predicate
return Collection

MapDownToBuffer() public method

public MapDownToBuffer ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextBuffer targetBuffer ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
targetBuffer ITextBuffer
return NormalizedSnapshotSpanCollection

MapDownToBuffer() public method

public MapDownToBuffer ( SnapshotPoint position, PointTrackingMode trackingMode, ITextBuffer targetBuffer, PositionAffinity affinity ) : SnapshotPoint?
position SnapshotPoint
trackingMode PointTrackingMode
targetBuffer ITextBuffer
affinity PositionAffinity
return SnapshotPoint?

MapDownToFirstMatch() public method

public MapDownToFirstMatch ( SnapshotSpan span, SpanTrackingMode trackingMode, Predicate match ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
match Predicate
return NormalizedSnapshotSpanCollection

MapDownToFirstMatch() public method

public MapDownToFirstMatch ( SnapshotPoint position, PointTrackingMode trackingMode, Predicate match, PositionAffinity affinity ) : SnapshotPoint?
position SnapshotPoint
trackingMode PointTrackingMode
match Predicate
affinity PositionAffinity
return SnapshotPoint?

MapDownToInsertionPoint() public method

public MapDownToInsertionPoint ( SnapshotPoint position, PointTrackingMode trackingMode, Predicate match ) : SnapshotPoint?
position SnapshotPoint
trackingMode PointTrackingMode
match Predicate
return SnapshotPoint?

MapDownToSnapshot() public method

public MapDownToSnapshot ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextSnapshot targetSnapshot ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
targetSnapshot ITextSnapshot
return NormalizedSnapshotSpanCollection

MapDownToSnapshot() public method

public MapDownToSnapshot ( SnapshotPoint position, PointTrackingMode trackingMode, ITextSnapshot targetSnapshot, PositionAffinity affinity ) : SnapshotPoint?
position SnapshotPoint
trackingMode PointTrackingMode
targetSnapshot ITextSnapshot
affinity PositionAffinity
return SnapshotPoint?

MapUpToBuffer() public method

public MapUpToBuffer ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextBuffer targetBuffer ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
targetBuffer ITextBuffer
return NormalizedSnapshotSpanCollection

MapUpToBuffer() public method

public MapUpToBuffer ( SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer ) : SnapshotPoint?
point SnapshotPoint
trackingMode PointTrackingMode
affinity PositionAffinity
targetBuffer ITextBuffer
return SnapshotPoint?

MapUpToFirstMatch() public method

public MapUpToFirstMatch ( SnapshotSpan span, SpanTrackingMode trackingMode, Predicate match ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
match Predicate
return NormalizedSnapshotSpanCollection

MapUpToFirstMatch() public method

public MapUpToFirstMatch ( SnapshotPoint point, PointTrackingMode trackingMode, Predicate match, PositionAffinity affinity ) : SnapshotPoint?
point SnapshotPoint
trackingMode PointTrackingMode
match Predicate
affinity PositionAffinity
return SnapshotPoint?

MapUpToSnapshot() public method

public MapUpToSnapshot ( SnapshotSpan span, SpanTrackingMode trackingMode, ITextSnapshot targetSnapshot ) : NormalizedSnapshotSpanCollection
span SnapshotSpan
trackingMode SpanTrackingMode
targetSnapshot ITextSnapshot
return NormalizedSnapshotSpanCollection

MapUpToSnapshot() public method

public MapUpToSnapshot ( SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextSnapshot targetSnapshot ) : SnapshotPoint?
point SnapshotPoint
trackingMode PointTrackingMode
affinity PositionAffinity
targetSnapshot ITextSnapshot
return SnapshotPoint?