pub struct UiAutomationRangeValuePattern(/* private fields */);
Expand description

提供对显示一系列值的控件的访问。

Implementations§

source§

impl UiAutomationRangeValuePattern

https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nn-uiautomationclient-iuiautomationrangevaluepattern

source

pub fn is_read_only(&self) -> bool

指示是否可以更改元素的值。 此属性是只读的。

source

pub fn get_large_change(&self) -> f64

检索在进行较大更改时(例如,按下 PAGE DOWN 键时)向控件的值添加或减去的值。 此属性是只读的。 LargeChange 属性可以支持非数字 (NaN) 值。检索此属性时,客户端可以使用 _isnan 函数来确定该属性是否为 NaN 值。

source

pub fn get_maximum(&self) -> f64

检索控件的最大值。 此属性是只读的。

source

pub fn get_minimum(&self) -> f64

检索控件的最小值。 此属性是只读的。

source

pub fn get_small_change(&self) -> f64

检索在进行小的更改时(例如,当按下箭头键时)添加到控件的值或从控件的值中减去的值。 此属性是只读的。 SmallChange 属性可以支持非数字 (NaN) 值。检索此属性时,客户端可以使用 _isnan 函数来确定该属性是否为 NaN 值。

source

pub fn get_value(&self) -> f64

检索控件的值。 此属性是只读的。

source

pub fn set_value(&self, value: f64) -> bool

设置控件的值。

Trait Implementations§

source§

impl PatternCreator<IUIAutomationRangeValuePattern> for UiAutomationRangeValuePattern

source§

const PATTERN: UIA_PATTERN_ID = UIA_RangeValuePatternId

模式的ID
source§

fn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
where <Self as TryFrom<I>>::Error: Debug,

从UI元素获取此模式。 value UI元素。
source§

impl TryFrom<IUIAutomationRangeValuePattern> for UiAutomationRangeValuePattern

source§

type Error = PatternError

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

fn try_from(value: IUIAutomationRangeValuePattern) -> Result<Self, Self::Error>

Performs the conversion.

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, U> TryFrom<U> for T
where U: Into<T>,

source§

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>,

source§

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.