C# Class dnSpy.Text.Editor.Search.SearchService

Inheritance: dnSpy.Contracts.MVVM.ViewModelBase, ISearchService
Show file Open project: 0xd4d/dnSpy

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CanExecuteSearchControl() public method

public CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
group System.Guid
cmdId int
return CommandTargetStatus

ExecuteSearchControl() public method

public ExecuteSearchControl ( System.Guid group, int cmdId, object args, object &result ) : CommandTargetStatus
group System.Guid
cmdId int
args object
result object
return CommandTargetStatus

FindNext() public method

public FindNext ( bool forward ) : void
forward bool
return void

FindNextSelected() public method

public FindNextSelected ( bool forward ) : void
forward bool
return void

GetSpans() public method

public GetSpans ( NormalizedSnapshotSpanCollection spans ) : IEnumerable
spans NormalizedSnapshotSpanCollection
return IEnumerable

RegisterTextMarkerListener() public method

public RegisterTextMarkerListener ( ITextMarkerListener listener ) : void
listener ITextMarkerListener
return void

SearchService() public method

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
return System

ShowFind() public method

public ShowFind ( ) : void
return void

ShowIncrementalSearch() public method

public ShowIncrementalSearch ( bool forward ) : void
forward bool
return void

ShowReplace() public method

public ShowReplace ( ) : void
return void