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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기