Module: Bewildr::ControlTypeAdditions::DocumentAdditions

Defined in:
lib/bewildr/control_type_additions/document_additions.rb

Instance Method Summary collapse

Instance Method Details

#textObject

Returns the document text



7
8
9
# File 'lib/bewildr/control_type_additions/document_additions.rb', line 7

def text
  get_text
end

#text=(input) ⇒ Object

Sets the document text to the supplied input



12
13
14
15
16
17
18
# File 'lib/bewildr/control_type_additions/document_additions.rb', line 12

def text=(input)
  cleaned_string = clean_string(input)
  focus
  select_all
  System::Windows::Forms::SendKeys.send_wait("{DEL}")
  System::Windows::Forms::SendKeys.send_wait(cleaned_string)
end