C# Class Microsoft.Languages.Editor.ContainedLanguage.ContainedLanguageHandler

Inheritance: IContainedLanguageHandler
Exibir arquivo Open project: Microsoft/RTVS

Public Methods

Method Description
GetCodeBlockOfLocation ( int bufferPosition ) : ITextRange

Locates contained language block for a given location.

GetCommandTargetOfLocation ( ITextView textView, int bufferPosition ) : ICommandTarget

Retrieves contained command target for a given location in the buffer.

Protected Methods

Method Description
ContainedLanguageHandler ( ITextBuffer textBuffer, ICoreShell coreShell ) : Microsoft.Common.Core.Shell
GetLanguageBlockOfLocation ( int bufferPosition ) : ITextRange
OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void

Method Details

ContainedLanguageHandler() protected method

protected ContainedLanguageHandler ( ITextBuffer textBuffer, ICoreShell coreShell ) : Microsoft.Common.Core.Shell
textBuffer ITextBuffer
coreShell ICoreShell
return Microsoft.Common.Core.Shell

GetCodeBlockOfLocation() public abstract method

Locates contained language block for a given location.
public abstract GetCodeBlockOfLocation ( int bufferPosition ) : ITextRange
bufferPosition int
return ITextRange

GetCommandTargetOfLocation() public abstract method

Retrieves contained command target for a given location in the buffer.
public abstract GetCommandTargetOfLocation ( ITextView textView, int bufferPosition ) : ICommandTarget
textView ITextView
bufferPosition int
return ICommandTarget

GetLanguageBlockOfLocation() protected method

protected GetLanguageBlockOfLocation ( int bufferPosition ) : ITextRange
bufferPosition int
return ITextRange

OnTextBufferChanged() protected abstract method

protected abstract OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
return void