wxTextLine
generated from ../src/mod_io/textline.cppwxTextLine is a helper class. It doesn't exist in wxWidgets, but wxJS needs it, so you can access lines in wxTextFile as an array:
var i;
for(i = 0; i < file.lineCount; i++)
{
file.lines[i].content = ...
}
or as:
for each(line in textfile.lines)
{
line.content = ...
}
Constants
Properties
| Name | Type | Description |
|---|---|---|
| content | String |
Get/Set the content of the line. Remark: When you access this object as an array of wxTextFile you don't need this property. You can write:
textfile.lines[1] = 'Text';
|
lineType ![]() |
wxTextFileType | Get the type of the line |
Methods
insert
insert(Line,
Type = typeDefault)
| Name | Type | Default | Description |
|---|---|---|---|
| Line | String | The line to insert (without the end-of-line character(s)). | |
| Type | wxTextFileType | typeDefault |
Insert a line before this line.
remove
remove()
Removes this line from the file

© 2002 - 2007 Franky Braem.