FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ISelectionItemProvider

    trait · ferroui-controls · v0.5.0

    trait ISelectionItemProvider
    

    Exposes methods and properties to support access by a UI Automation client to individual, selectable child controls of containers that implement ISelectionProvider.

    View source

    Members

    peer

    fn peer(self: &Self) -> Ref<AutomationPeer>
    

    The automation peer that provides this contract.

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets a value that indicates whether an item is selected.

    Source

    selection_container

    fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
    

    Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

    Source

    add_to_selection

    fn add_to_selection(self: &Self) -> Result<(), AutomationError>
    

    Adds the current element to the collection of selected items.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    remove_from_selection

    fn remove_from_selection(self: &Self) -> Result<(), AutomationError>
    

    Removes the current element from the collection of selected items.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    select

    fn select(self: &Self) -> Result<(), AutomationError>
    

    Clears any existing selection and then selects the current element.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.