SWF Edit Native Properties & Methods - Codoid
Select Page
Codoid Blog

SWF Edit Native Properties & Methods

Irrespective of the business that your client is in, marketing is an integral part of their operations. In fact, in this day and age of social.

Font Details

Confirming whether textbox’s font is bold or not

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.Bold
'The above line returns true, if the editbox’s font is bold else false.
  

Getting applied font name

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.FontFamily.Name
  

Retrieving Font size

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.Size
  

Text Selection

Selecting all text

SwfWindow("Form").SwfEdit("Edit").Object.SelectAll
  

Selecting a range of text

SwfWindow("Form").SwfEdit("Edit").Object.Select 0,3
'Selects the text from first character to fourth character
  

Retrieving Selected text and starting postion

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.SelectedText
'Gets the selected text

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.SelectionStart
'Gets statring postion of selceted text
  

Appending text

SwfWindow("Form").SwfEdit("Edit").Object.AppendText("QTP")
  

Pasting clipboard value

SwfWindow("Form").SwfEdit("Edit").Object.Paste
  

Written By

Submit a Comment

Your email address will not be published. Required fields are marked *


Font Details

Confirming whether textbox’s font is bold or not

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.Bold
'The above line returns true, if the editbox’s font is bold else false.
  

Getting applied font name

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.FontFamily.Name
  

Retrieving Font size

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.Font.Size
  

Text Selection

Selecting all text

SwfWindow("Form").SwfEdit("Edit").Object.SelectAll
  

Selecting a range of text

SwfWindow("Form").SwfEdit("Edit").Object.Select 0,3
'Selects the text from first character to fourth character
  

Retrieving Selected text and starting postion

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.SelectedText
'Gets the selected text

Msgbox SwfWindow("Form").SwfEdit("Edit").Object.SelectionStart
'Gets statring postion of selceted text
  

Appending text

SwfWindow("Form").SwfEdit("Edit").Object.AppendText("QTP")
  

Pasting clipboard value

SwfWindow("Form").SwfEdit("Edit").Object.Paste