Class SearchContext
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class SearchContext : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SearchContext
- Implements
-
- Inherited Members
-
Constructors
SearchContext(params ConstructArgument[])
public SearchContext(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
SearchContext(SearchContextHandle)
public SearchContext(SearchContextHandle handle)
Parameters
handle
SearchContextHandle
Fields
BufferPropertyDefinition
public static readonly Property<Buffer?, SearchContext> BufferPropertyDefinition
Field Value
- Property<Buffer, SearchContext>
HighlightPropertyDefinition
public static readonly Property<bool, SearchContext> HighlightPropertyDefinition
Field Value
- Property<bool, SearchContext>
MatchStylePropertyDefinition
public static readonly Property<Style?, SearchContext> MatchStylePropertyDefinition
Field Value
- Property<Style, SearchContext>
OccurrencesCountPropertyDefinition
public static readonly Property<int, SearchContext> OccurrencesCountPropertyDefinition
Field Value
- Property<int, SearchContext>
RegexErrorPropertyDefinition
public static readonly Property<Error, SearchContext> RegexErrorPropertyDefinition
Field Value
- Property<Error, SearchContext>
SettingsPropertyDefinition
public static readonly Property<SearchSettings?, SearchContext> SettingsPropertyDefinition
Field Value
- Property<SearchSettings, SearchContext>
Properties
Buffer
public Buffer? Buffer { get; }
Property Value
- Buffer
Highlight
public bool Highlight { get; set; }
Property Value
- bool
MatchStyle
public Style? MatchStyle { get; set; }
Property Value
- Style
OccurrencesCount
public int OccurrencesCount { get; }
Property Value
- int
RegexError
public Error RegexError { get; }
Property Value
- Error
Settings
public SearchSettings? Settings { get; }
Property Value
- SearchSettings
Methods
GetBuffer()
public Buffer GetBuffer()
Returns
- Buffer
GetGType()
public static Type GetGType()
Returns
- Type
GetHighlight()
public bool GetHighlight()
Returns
- bool
GetMatchStyle()
public Style GetMatchStyle()
Returns
- Style
GetOccurrencePosition(TextIter, TextIter)
public int GetOccurrencePosition(TextIter matchStart, TextIter matchEnd)
Parameters
matchStart
TextIter
matchEnd
TextIter
Returns
- int
GetOccurrencesCount()
public int GetOccurrencesCount()
Returns
- int
GetRegexError()
public Error? GetRegexError()
Returns
- Error
GetSettings()
public SearchSettings GetSettings()
Returns
- SearchSettings
New(Buffer, SearchSettings?)
public static SearchContext New(Buffer buffer, SearchSettings? settings)
Parameters
buffer
Buffer
settings
SearchSettings
Returns
- SearchContext
Replace(TextIter, TextIter, string, int)
public bool Replace(TextIter matchStart, TextIter matchEnd, string replace, int replaceLength)
Parameters
matchStart
TextIter
matchEnd
TextIter
replace
string
replaceLength
int
Returns
- bool
ReplaceAll(string, int)
public uint ReplaceAll(string replace, int replaceLength)
Parameters
replace
string
replaceLength
int
Returns
- uint
SetHighlight(bool)
public void SetHighlight(bool highlight)
Parameters
highlight
bool
SetMatchStyle(Style?)
public void SetMatchStyle(Style? matchStyle)
Parameters
matchStyle
Style