pub struct UiAutomationItemContainerPattern(/* private fields */);Expand description
公开从容器(如虚拟列表)检索项的方法。 此接口不限于虚拟化容器使用。任何可以实现高效名称查找的容器都可以支持此控件模式,使客户端能够比使用find_first等方法更快地查找名称,后者必须遍历Microsoft UI自动化树。
Implementations§
Source§impl UiAutomationItemContainerPattern
impl UiAutomationItemContainerPattern
pub fn find_item_by_property<T>(
&self,
start_after: Option<&UiAutomationElement>,
property_id: UiaPropertyId,
value: T,
) -> Option<UiAutomationElement>where
VARIANT: From<T>,
Trait Implementations§
Source§impl PatternCreatorWithAutomation<IUIAutomationItemContainerPattern> for UiAutomationItemContainerPattern
impl PatternCreatorWithAutomation<IUIAutomationItemContainerPattern> for UiAutomationItemContainerPattern
Source§impl TryFrom<(IUIAutomationItemContainerPattern, Weak<IUIAutomation6>)> for UiAutomationItemContainerPattern
impl TryFrom<(IUIAutomationItemContainerPattern, Weak<IUIAutomation6>)> for UiAutomationItemContainerPattern
Auto Trait Implementations§
impl Freeze for UiAutomationItemContainerPattern
impl RefUnwindSafe for UiAutomationItemContainerPattern
impl !Send for UiAutomationItemContainerPattern
impl !Sync for UiAutomationItemContainerPattern
impl Unpin for UiAutomationItemContainerPattern
impl UnwindSafe for UiAutomationItemContainerPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more