Module: Bewildr::ControlPatterns::RangeValuePattern
- Defined in:
- lib/bewildr/control_patterns/range_value_pattern.rb
Instance Method Summary collapse
-
#maximum ⇒ Object
Returns the maximum value of the element.
-
#minimum ⇒ Object
Returns the minimum value of the element.
-
#value ⇒ Object
Returns the current value of the element.
-
#value=(input) ⇒ Object
Sets the value of the element.
Instance Method Details
#maximum ⇒ Object
Returns the maximum value of the element
17 18 19 |
# File 'lib/bewildr/control_patterns/range_value_pattern.rb', line 17 def maximum @automation_element.get_current_pattern(System::Windows::Automation::RangeValuePattern.pattern).current.maximum.to_f end |
#minimum ⇒ Object
Returns the minimum value of the element
22 23 24 |
# File 'lib/bewildr/control_patterns/range_value_pattern.rb', line 22 def minimum @automation_element.get_current_pattern(System::Windows::Automation::RangeValuePattern.pattern).current.minimum.to_f end |
#value ⇒ Object
Returns the current value of the element
7 8 9 |
# File 'lib/bewildr/control_patterns/range_value_pattern.rb', line 7 def value @automation_element.get_current_pattern(System::Windows::Automation::RangeValuePattern.pattern).current.value.to_f end |
#value=(input) ⇒ Object
Sets the value of the element
12 13 14 |
# File 'lib/bewildr/control_patterns/range_value_pattern.rb', line 12 def value=(input) @automation_element.get_current_pattern(System::Windows::Automation::RangeValuePattern.pattern).set_value(input.to_f) end |