StringFilterCapture Class
Specifies a captured zero-based text range from a string filter match.
public class StringFilterCapture
- Inheritance:
- System.Object Object
Constructors
StringFilterCapture(Int32, Int32)
Initializes a new instance of the StringFilterCapture
class.
public StringFilterCapture(int index, int length)
Parameter | Type | Description |
---|---|---|
index | System.Int32 | The zero-based start index. |
length | System.Int32 | The number of captured characters. |
Properties
Index
Gets the zero-based start index.
public int Index { get; }
Property Value
- System.Int32:
The zero-based start index.
Length
Gets the number of captured characters.
public int Length { get; }
Property Value
- System.Int32:
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 | System.Object | The |
Returns
- System.Boolean:
true
if the specifiedObject
is equal to the currentObject
; 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 | System.Windows.FrameworkElement | The object from which the property value is read. |
Returns
- System.Collections.Generic.IEnumerable<StringFilterCapture>:
The object's value.
GetHashCode()
Returns a hash code for this object.
public override int GetHashCode()
Returns
- System.Int32:
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 | System.Windows.FrameworkElement | The object to which the attached property is written. |
value | System.Collections.Generic.IEnumerable<StringFilterCapture> | The value to set. |
ToString()
Converts the object to a String
.
public override string ToString()
Returns
- System.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
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetType()
- System.Object.MemberwiseClone()