C# Класс dnSpy.Text.Editor.Search.SearchService

Наследование: dnSpy.Contracts.MVVM.ViewModelBase, ISearchService
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CanReplaceSpan bool
CancelIncrementalSearch void
Caret_PositionChanged void
CleanUpIncrementalSearch void
CloseSearchControl void
CloseSearchControlIfIncrementalSearch void
FindNextCore void
FindNextResultCore SnapshotSpan?
FindNextSelectedCore void
FocusReplaceStringTextBox void
FocusSearchStringTextBox void
GetAllResultsForReplaceAll string>>.IEnumerable
GetFindOptions FindOptions
GetFindResultStartIndex int
GetNextSearchPosition SnapshotPoint
GetStartingPosition SnapshotPoint?
GetStartingPosition SnapshotPoint?
GetsearchControlPosition SearchControlPosition
Intersects bool
IsMultiLineRegexPattern bool
PositionSearchControl void
PositionSearchControl void
PositionSearchControl void
PositionWithoutCoveringSpan void
RefreshAllTags void
ReplaceAll void
ReplaceFindNextCore SnapshotSpan?
ReplaceNext void
RepositionControl void
RestartSearch void
RestartSearchAndUpdateMarkers void
SaveSettings void
SearchControl_GotKeyboardFocus void
SearchControl_LostKeyboardFocus void
SearchControl_MouseDown void
SearchControl_SizeChanged void
SelectAllWhenFocused void
SetFoundResult void
SetIncrementalSearchString void
SetSearchKind void
SetSearchString void
ShowSearchControl void
ShowSearchResult void
ToggleFindReplace void
TryGetSearchStringAtCaret string
TryGetSearchStringAtPoint string
TryGetSearchStringFromSelection string
Unescape string
UpdateSearchStringFromCaretPosition void
UpdateTextMarkerSearch void
UseGlobalSettings void
UseGlobalSettingsIfUiIsHidden void
WpfTextView_Closed void
WpfTextView_LayoutChanged void

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

Метод Описание
CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
ExecuteSearchControl ( System.Guid group, int cmdId, object args, object &result ) : CommandTargetStatus
FindNext ( bool forward ) : void
FindNextSelected ( bool forward ) : void
GetSpans ( NormalizedSnapshotSpanCollection spans ) : IEnumerable
RegisterTextMarkerListener ( ITextMarkerListener listener ) : void
SearchService ( IWpfTextView wpfTextView, ITextSearchService2 textSearchService2, ISearchSettings searchSettings, IMessageBoxService messageBoxService, ITextStructureNavigator textStructureNavigator, Lazy replaceListenerProviders, IEditorOperationsFactoryService editorOperationsFactoryService ) : System
ShowFind ( ) : void
ShowIncrementalSearch ( bool forward ) : void
ShowReplace ( ) : void

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

Метод Описание
CanReplaceSpan ( SnapshotSpan span, string newText ) : bool
CancelIncrementalSearch ( ) : void
Caret_PositionChanged ( object sender, CaretPositionChangedEventArgs e ) : void
CleanUpIncrementalSearch ( ) : void
CloseSearchControl ( ) : void
CloseSearchControlIfIncrementalSearch ( ) : void
FindNextCore ( FindOptions options, SnapshotPoint startingPosition ) : void
FindNextResultCore ( FindOptions options, SnapshotPoint startingPosition ) : SnapshotSpan?
FindNextSelectedCore ( bool forward, bool restart ) : void
FocusReplaceStringTextBox ( ) : void
FocusSearchStringTextBox ( ) : void
GetAllResultsForReplaceAll ( ) : string>>.IEnumerable
GetFindOptions ( SearchKind searchKind, bool forward ) : FindOptions
GetFindResultStartIndex ( int position ) : int
GetNextSearchPosition ( SnapshotSpan span, bool forward ) : SnapshotPoint
GetStartingPosition ( FindOptions options, bool restart ) : SnapshotPoint?
GetStartingPosition ( SearchKind searchKind, FindOptions options, bool restart ) : SnapshotPoint?
GetsearchControlPosition ( SnapshotSpan span ) : SearchControlPosition
Intersects ( SnapshotSpan fullSpan, ITextViewLine line, Rect rect ) : bool
IsMultiLineRegexPattern ( string s ) : bool
PositionSearchControl ( Rect rect ) : void
PositionSearchControl ( SearchControlPosition position ) : void
PositionSearchControl ( double left, double top ) : void
PositionWithoutCoveringSpan ( SnapshotSpan span ) : void
RefreshAllTags ( ) : void
ReplaceAll ( ) : void
ReplaceFindNextCore ( string &expandedReplacePattern ) : SnapshotSpan?
ReplaceNext ( ) : void
RepositionControl ( bool recalcSize = false ) : void
RestartSearch ( ) : void
RestartSearchAndUpdateMarkers ( ) : void
SaveSettings ( ) : void
SearchControl_GotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
SearchControl_LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
SearchControl_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
SearchControl_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
SelectAllWhenFocused ( TextBox textBox ) : void
SetFoundResult ( bool found ) : void
SetIncrementalSearchString ( string newSearchString ) : void
SetSearchKind ( SearchKind value ) : void
SetSearchString ( string newSearchString, bool canSearch = true ) : void
ShowSearchControl ( SearchKind searchKind, bool canOverwriteSearchString ) : void
ShowSearchResult ( SnapshotSpan span ) : void
ToggleFindReplace ( ) : void
TryGetSearchStringAtCaret ( ) : string
TryGetSearchStringAtPoint ( VirtualSnapshotPoint point ) : string
TryGetSearchStringFromSelection ( ) : string
Unescape ( string s, FindOptions options ) : string
UpdateSearchStringFromCaretPosition ( bool canSearch ) : void
UpdateTextMarkerSearch ( ) : void
UseGlobalSettings ( bool canOverwriteSearchString ) : void
UseGlobalSettingsIfUiIsHidden ( bool canOverwriteSearchString ) : void
WpfTextView_Closed ( object sender, EventArgs e ) : void
WpfTextView_LayoutChanged ( object sender, TextViewLayoutChangedEventArgs e ) : void

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

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

public CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
group System.Guid
cmdId int
Результат CommandTargetStatus

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

public ExecuteSearchControl ( System.Guid group, int cmdId, object args, object &result ) : CommandTargetStatus
group System.Guid
cmdId int
args object
result object
Результат CommandTargetStatus

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

public FindNext ( bool forward ) : void
forward bool
Результат void

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

public FindNextSelected ( bool forward ) : void
forward bool
Результат void

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

public GetSpans ( NormalizedSnapshotSpanCollection spans ) : IEnumerable
spans NormalizedSnapshotSpanCollection
Результат IEnumerable

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

public RegisterTextMarkerListener ( ITextMarkerListener listener ) : void
listener ITextMarkerListener
Результат void

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

public SearchService ( IWpfTextView wpfTextView, ITextSearchService2 textSearchService2, ISearchSettings searchSettings, IMessageBoxService messageBoxService, ITextStructureNavigator textStructureNavigator, Lazy replaceListenerProviders, IEditorOperationsFactoryService editorOperationsFactoryService ) : System
wpfTextView IWpfTextView
textSearchService2 ITextSearchService2
searchSettings ISearchSettings
messageBoxService IMessageBoxService
textStructureNavigator ITextStructureNavigator
replaceListenerProviders Lazy
editorOperationsFactoryService IEditorOperationsFactoryService
Результат System

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

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

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

public ShowIncrementalSearch ( bool forward ) : void
forward bool
Результат void

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

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