back to io 

wxTextLine

generated from ../src/mod_io/textline.cpp

wxTextLine 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 read only 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



SourceForge.net Logo Support This Project

Table of Contents

Properties

content
lineType

Methods

insert
remove


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.