ITextRangeProvider.FindAttribute(Int32, Object, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個具有指定屬性值的文字範圍子集。
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
參數
- attribute
- Int32
要搜尋的屬性。
- value
- Object
要搜尋的屬性值。 此值必須與屬性指定的類型相符。
- backward
- Boolean
true 如果應該回傳最後出現的文字範圍而非第一個;否則 false。
傳回
具有匹配屬性與屬性值的文字範圍;否則為零(Nothing Visual Basic)。
備註
隱藏文字與可見文字之間沒有區別。