ITextRangeProvider.FindAttribute(Int32, Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a text range subset that has the specified attribute ID and attribute value.
public:
ITextRangeProvider ^ FindAttribute(int attributeId, Platform::Object ^ value, bool backward);
ITextRangeProvider FindAttribute(int const& attributeId, IInspectable const& value, bool const& backward);
public ITextRangeProvider FindAttribute(int attributeId, object value, bool backward);
function findAttribute(attributeId, value, backward)
Public Function FindAttribute (attributeId As Integer, value As Object, backward As Boolean) As ITextRangeProvider
Parameters
- attributeId
-
Int32
int
The attribute ID to search for.
- value
-
Object
Platform::Object
IInspectable
The attribute value to search for. This value must match the type specified for the attribute.
- backward
-
Boolean
bool
true if the last occurring text range should be returned instead of the first; otherwise, false.
Returns
A text range that has a matching attribute ID and attribute value; otherwise null.