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 value.
public:
System::Windows::Automation::Provider::ITextRangeProvider ^ FindAttribute(int attribute, System::Object ^ value, bool backward);
public System.Windows.Automation.Provider.ITextRangeProvider FindAttribute (int attribute, object value, bool backward);
abstract member FindAttribute : int * obj * bool -> System.Windows.Automation.Provider.ITextRangeProvider
Public Function FindAttribute (attribute As Integer, value As Object, backward As Boolean) As ITextRangeProvider
Parameters
- attribute
- Int32
The attribute to search for.
- value
- Object
The attribute value to search for. This value must match the type specified for the attribute.
- backward
- Boolean
true
if the last occurring text range should be returned instead of the first; otherwise false
.
Returns
A text range having a matching attribute and attribute value; otherwise null (Nothing
in Visual Basic).
Remarks
There is no differentiation between hidden and visible text.
Applies to
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру