Module: Bewildr::ControlPatterns::RangeValuePattern

Defined in:
lib/bewildr/control_patterns/range_value_pattern.rb

Instance Method Summary collapse

Instance Method Details

#maximumObject

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

#minimumObject

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

#valueObject

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