Module: Bewildr::ControlPatterns::TableItemPattern

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

Instance Method Summary collapse

Instance Method Details

#column_spanObject

Returns the number of columns the element spans



12
13
14
# File 'lib/bewildr/control_patterns/table_item_pattern.rb', line 12

def column_span
  @automation_element.get_current_pattern(System::Windows::Automation::TableItemPattern.pattern).current.column_span.to_i
end

#row_spanObject

Returns the number of rows the element spans



7
8
9
# File 'lib/bewildr/control_patterns/table_item_pattern.rb', line 7

def row_span
  @automation_element.get_current_pattern(System::Windows::Automation::TableItemPattern.pattern).current.row_span.to_i
end