C# Class Microsoft.Languages.Editor.Projection.ProjectionBufferManager

Manages the projection buffer for the primary language
Inheritance: IProjectionBufferManager
ファイルを表示 Open project: Microsoft/RTVS

Public Methods

Method Description
Dispose ( ) : void
FromTextBuffer ( ITextBuffer textBuffer ) : IProjectionBufferManager
ProjectionBufferManager ( ITextBuffer diskBuffer, IProjectionBufferFactoryService projectionBufferFactoryService, IContentTypeRegistryService contentTypeRegistryService, ICoreShell coreShell, string topLevelContentTypeName, string secondaryContentTypeName ) : System
SetProjectionMappings ( string secondaryContent, IReadOnlyList mappings ) : void

Private Methods

Method Description
CreateSecondarySpans ( string secondaryText, IReadOnlyList mappings ) : List
CreateViewSpans ( IReadOnlyList mappings ) : List
GetCaret ( ) : ITextCaret
GetCaretPosition ( ) : int?
MapEverythingToView ( ) : void
RestoreCaretPosition ( ) : void
SaveCaretPosition ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FromTextBuffer() public static method

public static FromTextBuffer ( ITextBuffer textBuffer ) : IProjectionBufferManager
textBuffer ITextBuffer
return IProjectionBufferManager

ProjectionBufferManager() public method

public ProjectionBufferManager ( ITextBuffer diskBuffer, IProjectionBufferFactoryService projectionBufferFactoryService, IContentTypeRegistryService contentTypeRegistryService, ICoreShell coreShell, string topLevelContentTypeName, string secondaryContentTypeName ) : System
diskBuffer ITextBuffer
projectionBufferFactoryService IProjectionBufferFactoryService
contentTypeRegistryService IContentTypeRegistryService
coreShell ICoreShell
topLevelContentTypeName string
secondaryContentTypeName string
return System

SetProjectionMappings() public method

public SetProjectionMappings ( string secondaryContent, IReadOnlyList mappings ) : void
secondaryContent string
mappings IReadOnlyList
return void