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)

Initializes a new instance of the StringFilterCapture class.

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

Gets the zero-based start index.

public int Index { get; }

Property Value

int:

The zero-based start index.

Length

Gets the number of captured characters.

public int Length { get; }

Property Value

int:

The number of captured characters.

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 to 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>:

The object's value.

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this 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()

Converts the object to a String.

public override string ToString()

Returns

string:

A string whose value represents this object.

Fields

CapturesProperty

Identifies the Captures dependency property. This field is read-only.

public static readonly DependencyProperty CapturesProperty

Inherited Members