IItemContainerProvider.FindItemByProperty 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.
Retrieves an element by the specified property value.
public:
System::Windows::Automation::Provider::IRawElementProviderSimple ^ FindItemByProperty(System::Windows::Automation::Provider::IRawElementProviderSimple ^ startAfter, int propertyId, System::Object ^ value);
public System.Windows.Automation.Provider.IRawElementProviderSimple FindItemByProperty (System.Windows.Automation.Provider.IRawElementProviderSimple startAfter, int propertyId, object value);
abstract member FindItemByProperty : System.Windows.Automation.Provider.IRawElementProviderSimple * int * obj -> System.Windows.Automation.Provider.IRawElementProviderSimple
Public Function FindItemByProperty (startAfter As IRawElementProviderSimple, propertyId As Integer, value As Object) As IRawElementProviderSimple
Parameters
- startAfter
- IRawElementProviderSimple
The item in the container after which to begin the search.
- propertyId
- Int32
The property that contains the value to retrieve.
- value
- Object
The value to retrieve.
Returns
The first item that matches the search criterion; otherwise, null
if no items match.
Remarks
Set the propertyId
parameter to 0
to retrieve the next item after startAfter
, regardless of the value specified in value
. Set startAfter
to null
to start the search with the first item.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om