Table of Contents

Class SearchContext

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class SearchContext : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
SearchContext
Implements
Inherited Members

Constructors

SearchContext(bool, params ConstructArgument[])

protected SearchContext(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

SearchContext(IntPtr, bool)

protected SearchContext(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

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