C# Класс Microsoft.Sarif.Viewer.CodeLocationObject

Наследование: NotifyPropertyChangedObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_filePath string
_lineMarker ResultTextMarker

Private Properties

Свойство Тип Описание
AttachMarkerToTextView void
AttachToDocument void
AttachToDocumentWorker void
GetTextViewFromFrame IVsTextView
GetWpfTextView IWpfTextView

Открытые методы

Метод Описание
ApplyDefaultSourceFileHighlighting ( ) : void
ApplySelectionSourceFileHighlighting ( ) : void

A method for handling the event when this object is selected

NavigateTo ( bool usePreviewPane = true ) : void

Приватные методы

Метод Описание
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

Описание методов

ApplyDefaultSourceFileHighlighting() публичный Метод

public ApplyDefaultSourceFileHighlighting ( ) : void
Результат void

ApplySelectionSourceFileHighlighting() публичный Метод

A method for handling the event when this object is selected
public ApplySelectionSourceFileHighlighting ( ) : void
Результат void

NavigateTo() публичный Метод

public NavigateTo ( bool usePreviewPane = true ) : void
usePreviewPane bool
Результат void

Описание свойств

_filePath защищенное свойство

protected string _filePath
Результат string

_lineMarker защищенное свойство

protected ResultTextMarker,Microsoft.Sarif.Viewer _lineMarker
Результат ResultTextMarker