Difference between revisions of "Editbox"

From Lianjapedia
Jump to: navigation, search
Line 5: Line 5:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Property
 
!width="20%"|Property
 
!Access (R/RW)
 
!Access (R/RW)
Line 72: Line 72:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Method
 
!width="20%"|Method
 
!Args
 
!Args
Line 163: Line 163:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!width="20%"|Event
 
!Args
 
!Args

Revision as of 10:27, 30 January 2013

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
Value RW Character Object's text contents
Text RW Character Object's text in plain text
HTML RW Character Object's text in HTML
Alignment RW Numeric Alignment: 0 = left, 1 = right, 2 = center
Readonly RW Boolean Whether text is readonly
WordWrap RW Boolean Whether text is word-wrapped
Modified RW Boolean Whether text has been modified
LineCount R Numeric Number of lines
LineNumber R Numeric Current line number
ColumnNumber R Numeric Current column number
SelectOnEntry RW Boolean Whether text is selected when object is entered

Methods

This class supports the Common Methods plus the following:

Method Args Description
Print None Print text contents
Append text as Character Add the specified text to the end of the existing text
Cut None Cut the currently selected text
Copy None Copy the currently selected text
Paste None Paste the current contents of the clipboard
Clear None Clear all text
Undo None Undo last action
Redo None Redo last action
SelectAll None Select all text
Find text as Character[, flags as Numeric] Search for the specified text in the contents. Flags: 1 = search backwards instead of forwards, 2 = case sensitive, 4 = match only complete words
Goto line as Numeric Go to the specified line number
DeleteLine line as Numeric Delete the line at the specified line number
HighlightLine line as Numeric Highlight the line at the specified line number
InsertText text as Character Insert the specified plain text at the current position
InsertHtml htmltext as Character Insert the specified HTML text at the current position
MoveStart None Move to the start of the text
MoveEnd None Move to the end of the text
MoveUp None Move up a line in the text
MoveDown None Move down a line in the text
Line line as Numeric Return the text at the specified line number

Events

This class supports the Common Events plus the following:

Event Args Description