[]
Returns the closest position that satisfies a predicate.
public C1TextPointer Closest(Func<C1TextPointer, bool> predicate, Func<C1TextPointer, C1TextPointer, int> distance, C1TextElement range)
| Type | Name | Description |
|---|---|---|
| Func<C1TextPointer, bool> | predicate | The predicate that must be satisfied. |
| Func<C1TextPointer, C1TextPointer, int> | distance | A distance function. |
| C1TextElement | range | The range to be searched in. |
| Type | Description |
|---|---|
| C1TextPointer | The closest position that satisfies the predicate. |
Returns the closest position that satisfies a predicate.
public C1TextPointer Closest(Func<C1TextPointer, bool> predicate, Func<C1TextPointer, C1TextPointer, int> distance)
| Type | Name | Description |
|---|---|---|
| Func<C1TextPointer, bool> | predicate | The predicate that must be satisfied. |
| Func<C1TextPointer, C1TextPointer, int> | distance | A distance function. |
| Type | Description |
|---|---|
| C1TextPointer | The closest position that satisfies the predicate. |