In This Article

StringFilterCapture Class

Specifies a captured zero-based text range from a string filter match.

public class StringFilterCapture
Inheritance:
object object

Constructors

StringFilterCapture(int, int)

Specifies a captured zero-based text range from a string filter match.

public StringFilterCapture(int index, int length)
Parameter Type Description
index int

The zero-based start index.

length int

The number of captured characters.

Properties

Index

The zero-based start index.

public int Index { get; }

Property Value

int

Length

The number of captured characters.

public int Length { get; }

Property Value

int

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameter Type Description
obj object

The object to compare with the current object.

Returns

bool:

true if the specified object is equal to the current object; otherwise, false.

GetCaptures(FrameworkElement)

Gets the value of the Captures attached property for the specified object.

public static IEnumerable<StringFilterCapture>? GetCaptures(FrameworkElement obj)
Parameter Type Description
obj FrameworkElement

The object from which the property value is read.

Returns

IEnumerable<StringFilterCapture>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

SetCaptures(FrameworkElement, IEnumerable<StringFilterCapture>?)

Sets the value of the Captures attached property to the specified object.

public static void SetCaptures(FrameworkElement obj, IEnumerable<StringFilterCapture>? value)
Parameter Type Description
obj FrameworkElement

The object to which the attached property is written.

value IEnumerable<StringFilterCapture>

The value to set.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Fields

CapturesProperty

Defines the Captures property.

public static readonly DependencyProperty CapturesProperty

Inherited Members

Extension Methods