C# Class Microsoft.Sarif.Viewer.CodeLocationObject

Inheritance: NotifyPropertyChangedObject
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Protected Properties

Свойство Type Description
_filePath string
_lineMarker ResultTextMarker

Private Properties

Свойство Type Description
AttachMarkerToTextView void
AttachToDocument void
AttachToDocumentWorker void
GetTextViewFromFrame IVsTextView
GetWpfTextView IWpfTextView

Méthodes publiques

Méthode Description
ApplyDefaultSourceFileHighlighting ( ) : void
ApplySelectionSourceFileHighlighting ( ) : void

A method for handling the event when this object is selected

NavigateTo ( bool usePreviewPane = true ) : void

Private Methods

Méthode Description
AttachMarkerToTextView ( IWpfTextView textView, long docCookie, ResultTextMarker marker, int line, int column, int endLine, int endColumn ) : void

Highlight the source code on a particular line

AttachToDocument ( string documentName, long docCookie, IVsWindowFrame frame ) : void

An overridden method for reacting to the event of a document window being opened

AttachToDocumentWorker ( IVsWindowFrame frame, long docCookie, ResultTextMarker marker ) : void

Check that current marker point to correct line position and attach it to docCookie for track changes.

GetTextViewFromFrame ( IVsWindowFrame frame ) : IVsTextView
GetWpfTextView ( IVsTextView textView ) : IWpfTextView

Helper method for getting a IWpfTextView from a IVsTextView object

Method Details

ApplyDefaultSourceFileHighlighting() public méthode

public ApplyDefaultSourceFileHighlighting ( ) : void
Résultat void

ApplySelectionSourceFileHighlighting() public méthode

A method for handling the event when this object is selected
public ApplySelectionSourceFileHighlighting ( ) : void
Résultat void

NavigateTo() public méthode

public NavigateTo ( bool usePreviewPane = true ) : void
usePreviewPane bool
Résultat void

Property Details

_filePath protected_oe property

protected string _filePath
Résultat string

_lineMarker protected_oe property

protected ResultTextMarker,Microsoft.Sarif.Viewer _lineMarker
Résultat ResultTextMarker