Struct uiautomation::core::UIElement

source ·
pub struct UIElement { /* private fields */ }
Expand description

A wrapper for windows IUIAutomationElement interface.

Exposes methods and properties for a UI Automation element, which represents a UI item.

Implementations§

source§

impl UIElement

source

pub fn build_updated_cache( &self, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves a new UI Automation element with an updated cache.

source

pub fn find_first( &self, scope: TreeScope, condition: &UICondition ) -> Result<UIElement>

Retrieves the first child or descendant element that matches the specified condition.

source

pub fn find_first_build_cache( &self, scope: TreeScope, condition: &UICondition, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the first child or descendant element that matches the specified condition, prefetches the requested properties and control patterns, and stores the prefetched items in the cache.

source

pub fn find_all( &self, scope: TreeScope, condition: &UICondition ) -> Result<Vec<UIElement>>

Returns all UI Automation elements that satisfy the specified condition.

source

pub fn find_all_build_cache( &self, scope: TreeScope, condition: &UICondition, cache_request: &UICacheRequest ) -> Result<Vec<UIElement>>

Returns all UI Automation elements that satisfy the specified condition, prefetches the requested properties and control patterns, and stores the prefetched items in the cache.

source

pub fn get_runtime_id(&self) -> Result<Vec<i32>>

Receives the runtime ID as a vec of integers.

source

pub fn get_name(&self) -> Result<String>

Retrieves the name of the element.

source

pub fn get_cached_name(&self) -> Result<String>

Retrieves the cached name of the element.

source

pub fn get_automation_id(&self) -> Result<String>

Retrieves the Microsoft UI Automation identifier of the element.

source

pub fn get_cached_automation_id(&self) -> Result<String>

Retrieves the cached Microsoft UI Automation identifier of the element.

source

pub fn get_process_id(&self) -> Result<i32>

Retrieves the identifier of the process that hosts the element.

source

pub fn get_cached_process_id(&self) -> Result<i32>

Retrieves the cached ID of the process that hosts the element.

source

pub fn get_classname(&self) -> Result<String>

Retrieves the class name of the element.

source

pub fn get_cached_classname(&self) -> Result<String>

Retrieves the cached class name of the element.

source

pub fn get_control_type(&self) -> Result<ControlType>

Retrieves the control type of the element.

source

pub fn get_cached_control_type(&self) -> Result<ControlType>

Retrieves the cached control type of the element.

source

pub fn get_localized_control_type(&self) -> Result<String>

Retrieves a localized description of the control type of the element.

source

pub fn get_cached_localized_control_type(&self) -> Result<String>

Retrieves cached localized description of the control type of the element.

source

pub fn get_accelerator_key(&self) -> Result<String>

Retrieves the accelerator key for the element.

source

pub fn get_cached_accelerator_key(&self) -> Result<String>

Retrieves the cached accelerator key for the element.

source

pub fn get_access_key(&self) -> Result<String>

Retrieves the access key character for the element.

source

pub fn get_cached_access_key(&self) -> Result<String>

Retrieves the cached access key character for the element.

source

pub fn has_keyboard_focus(&self) -> Result<bool>

Indicates whether the element has keyboard focus.

source

pub fn has_cached_keyboard_focus(&self) -> Result<bool>

A cached value that indicates whether the element has keyboard focus.

source

pub fn is_keyboard_focusable(&self) -> Result<bool>

Indicates whether the element can accept keyboard focus.

source

pub fn is_cached_keyboard_focusable(&self) -> Result<bool>

A cached value that indicates whether the element can accept keyboard focus.

source

pub fn is_enabled(&self) -> Result<bool>

Indicates whether the element is enabled.

source

pub fn is_cached_enabled(&self) -> Result<bool>

A cached value that indicates whether the element is enabled.

source

pub fn get_help_text(&self) -> Result<String>

Retrieves the help text for the element.

source

pub fn get_cached_help_text(&self) -> Result<String>

Retrieves the cached help text for the element.

source

pub fn get_culture(&self) -> Result<i32>

Retrieves the culture identifier for the element.

source

pub fn get_cached_culture(&self) -> Result<i32>

Retrieves the cached culture identifier for the element.

source

pub fn is_control_element(&self) -> Result<bool>

Indicates whether the element is a control element.

source

pub fn is_cached_control_element(&self) -> Result<bool>

A cached value that indicates whether the element is a control element.

source

pub fn is_content_element(&self) -> Result<bool>

Indicates whether the element is a content element.

source

pub fn is_cached_content_element(&self) -> Result<bool>

A cached value that indicates whether the element is a content element.

source

pub fn is_password(&self) -> Result<bool>

Indicates whether the element contains a disguised password.

source

pub fn is_cached_password(&self) -> Result<bool>

A cached value that indicates whether the element contains a disguised password.

source

pub fn get_native_window_handle(&self) -> Result<Handle>

Retrieves the window handle of the element.

source

pub fn get_cached_native_window_handle(&self) -> Result<Handle>

Retrieves the cached window handle of the element.

source

pub fn get_item_type(&self) -> Result<String>

Retrieves a description of the type of UI item represented by the element.

source

pub fn get_cached_item_type(&self) -> Result<String>

Retrieves a cached description of the type of UI item represented by the element.

source

pub fn is_offscreen(&self) -> Result<bool>

Indicates whether the element is off-screen.

source

pub fn is_cached_offscreen(&self) -> Result<bool>

A cached value that indicates whether the element is off-screen.

source

pub fn get_orientation(&self) -> Result<OrientationType>

Retrieves a value that indicates the orientation of the element.

source

pub fn get_cached_orientation(&self) -> Result<OrientationType>

Retrieves a cached value that indicates the orientation of the element.

source

pub fn get_framework_id(&self) -> Result<String>

Retrieves the name of the underlying UI framework.

source

pub fn get_cached_framework_id(&self) -> Result<String>

Retrieves the cached name of the underlying UI framework.

source

pub fn is_required_for_form(&self) -> Result<bool>

Indicates whether the element is required to be filled out on a form.

source

pub fn is_cached_required_for_form(&self) -> Result<bool>

A cached value that indicates whether the element is required to be filled out on a form.

source

pub fn is_data_valid_for_form(&self) -> Result<bool>

Indicates whether the element contains valid data for a form.

source

pub fn is_cached_data_valid_for_form(&self) -> Result<bool>

A cached value that indicates whether the element contains valid data for a form.

source

pub fn get_item_status(&self) -> Result<String>

Retrieves the description of the status of an item in an element.

source

pub fn get_cached_item_status(&self) -> Result<String>

Retrieves the cached description of the status of an item in an element.

source

pub fn get_bounding_rectangle(&self) -> Result<Rect>

Retrieves the coordinates of the rectangle that completely encloses the element.

source

pub fn get_cached_bounding_rectangle(&self) -> Result<Rect>

Retrieves the cached coordinates of the rectangle that completely encloses the element.

source

pub fn get_labeled_by(&self) -> Result<UIElement>

Retrieves the element that contains the text label for this element.

source

pub fn get_cached_labeled_by(&self) -> Result<UIElement>

Retrieves the cached element that contains the text label for this element.

source

pub fn get_controller_for(&self) -> Result<Vec<UIElement>>

Retrieves an array of elements for which this element serves as the controller.

source

pub fn get_cached_controller_for(&self) -> Result<Vec<UIElement>>

Retrieves a cached array of elements for which this element serves as the controller.

source

pub fn get_described_by(&self) -> Result<Vec<UIElement>>

Retrieves an array of elements that describe this element.

source

pub fn get_cached_described_by(&self) -> Result<Vec<UIElement>>

Retrieves a cached array of elements that describe this element.

source

pub fn get_flows_to(&self) -> Result<Vec<UIElement>>

Retrieves an array of elements that indicates the reading order after the current element.

source

pub fn get_cached_flows_to(&self) -> Result<Vec<UIElement>>

Retrieves a cached array of elements that indicates the reading order after the current element.

source

pub fn get_provider_description(&self) -> Result<String>

Retrieves a description of the provider for this element.

source

pub fn get_cached_provider_description(&self) -> Result<String>

Retrieves a cached description of the provider for this element.

source

pub fn set_focus(&self) -> Result<()>

Sets the keyboard focus to this UI Automation element.

source

pub fn try_focus(&self) -> bool

Try to set focus, return true if focus successfully.

source

pub fn get_pattern<T: UIPattern + TryFrom<IUnknown, Error = Error>>( &self ) -> Result<T>

Retrieves the control pattern interface of the specified pattern <T> from this UI Automation element.

source

pub fn get_cached_pattern<T: UIPattern + TryFrom<IUnknown, Error = Error>>( &self ) -> Result<T>

Retrieves the cached control pattern interface of the specified pattern <T> from this UI Automation element.

source

pub fn get_clickable_point(&self) -> Result<Option<Point>>

Retrieves a point on the element that can be clicked.

source

pub fn get_property_value(&self, property: UIProperty) -> Result<Variant>

Retrieves the current value of a property for this UI Automation element.

source

pub fn get_cached_property_value(&self, property: UIProperty) -> Result<Variant>

Retrieves the cached value of a property for this UI Automation element.

source

pub fn show_context_menu(&self) -> Result<()>

Programmatically invokes a context menu on the target element.

source

pub fn send_keys(&self, keys: &str, interval: u64) -> Result<()>

Simulates typing keys on keyboard.

{} is used for some special keys. For example: {ctrl}{alt}{delete}, {shift}{home}.

() is used for group keys. For example: {ctrl}(AB) types Ctrl+A+B.

{}() can be quoted by {}. For example: {{}Hi,{(}rust!{)}{}} types {Hi,(rust)}.

interval is the milliseconds between keys. 0 is the default value.

§Examples
use uiautomation::core::UIAutomation;
 
let automation = UIAutomation::new().unwrap();
let root = automation.get_root_element().unwrap();
root.send_keys("{Win}D", 0).unwrap();
source

pub fn hold_send_keys( &self, holdkeys: &str, keys: &str, interval: u64 ) -> Result<()>

Simulates holding holdkeys on keyboard, then sending keys.

The key format is the same with send_keys().

§Examples
use uiautomation::core::UIAutomation;
 
let automation = UIAutomation::new().unwrap();
let root = automation.get_root_element().unwrap();
root.hold_send_keys("{Win}", "P", 0).unwrap();
source

pub fn click(&self) -> Result<()>

Simulates mouse left click event on the element.

source

pub fn hold_click(&self, holdkeys: &str) -> Result<()>

Simulates mouse left click event with holdkeys on the element.

The holdkey is quoted by {}, for example: {Ctrl}, {Ctrl}{Shift}.

source

pub fn double_click(&self) -> Result<()>

Simulates mouse double click event on the element.

source

pub fn right_click(&self) -> Result<()>

Simulates mouse right click event on the element.

Trait Implementations§

source§

impl AsRef<IUIAutomationElement> for UIElement

source§

fn as_ref(&self) -> &IUIAutomationElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for AppBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ButtonControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for CalendarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for CheckBoxControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ComboBoxControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for DataGridControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for DataItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for DocumentControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for EditControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for GroupControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for HeaderControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for HeaderItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for HyperlinkControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ImageControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ListControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ListItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for MenuBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for MenuControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for MenuItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for PaneControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ProgressBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for RadioButtonControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ScrollBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for SemanticZoomControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for SeparatorControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for SliderControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for SpinnerControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for SplitButtonControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for StatusBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TabControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TabItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TableControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TextControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ThumbControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TitleBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ToolBarControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for ToolTipControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TreeControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for TreeItemControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIElement> for WindowControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for UIElement

source§

fn clone(&self) -> UIElement

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UIElement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for UIElement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<IUIAutomationElement> for UIElement

source§

fn from(element: IUIAutomationElement) -> Self

Converts to this type from the input type.
source§

impl Into<IUIAutomationElement> for UIElement

source§

fn into(self) -> IUIAutomationElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for AppBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ButtonControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for CalendarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for CheckBoxControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ComboBoxControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for DataGridControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for DataItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for DocumentControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for EditControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for GroupControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for HeaderControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for HeaderItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for HyperlinkControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ImageControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ListControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ListItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for MenuBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for MenuControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for MenuItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for PaneControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ProgressBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for RadioButtonControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ScrollBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for SemanticZoomControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for SeparatorControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for SliderControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for SpinnerControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for SplitButtonControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for StatusBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TabControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TabItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TableControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TextControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ThumbControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TitleBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ToolBarControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for ToolTipControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TreeControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for TreeItemControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Into<UIElement> for WindowControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl TryFrom<&UIElement> for AppBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for CalendarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for CheckBoxControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ComboBoxControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for DataGridControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for DataItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for DocumentControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for EditControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for GroupControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for HeaderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for HeaderItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for HyperlinkControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ImageControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ListControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ListItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for MenuBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for MenuControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for MenuItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for PaneControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ProgressBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for RadioButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ScrollBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for SemanticZoomControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for SeparatorControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for SliderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for SpinnerControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for SplitButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for StatusBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TabControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TabItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TableControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TextControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ThumbControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TitleBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ToolBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for ToolTipControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TreeControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for TreeItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&UIElement> for WindowControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for AppBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for CalendarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for CheckBoxControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ComboBoxControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for DataGridControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for DataItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for DocumentControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for EditControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for GroupControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for HeaderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for HeaderItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for HyperlinkControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ImageControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ListControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ListItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for MenuBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for MenuControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for MenuItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for PaneControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ProgressBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for RadioButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ScrollBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for SemanticZoomControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for SeparatorControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for SliderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for SpinnerControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for SplitButtonControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for StatusBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TabControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TabItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TableControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TextControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ThumbControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TitleBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ToolBarControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for ToolTipControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TreeControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for TreeItemControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for WindowControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.
source§

impl Param<IUIAutomationElement> for &UIElement

source§

impl Param<IUIAutomationElement> for UIElement

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.