TextCtrl Class Reference

Inheritance diagram for TextCtrl:

Control Window EvtHandler wxObject IDisposable

List of all members.

Public Member Functions

 this (IntPtr wxobj)
 this (Window parent, int id, string value="", Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=0, Validator validator=null, string name=wxTextCtrlNameStr)
 this (Window parent, string value="", Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=0, Validator validator=null, string name=wxTextCtrlNameStr)
void Clear ()
override void BackgroundColour (Colour value)
override void ForegroundColour (Colour value)
string Value ()
void Value (string value)
string GetRange (int from, int to)
int LineLength (int lineNo)
string GetLineText (int lineNo)
int GetNumberOfLines ()
bool IsModified ()
bool IsEditable ()
bool IsSingleLine ()
bool IsMultiLine ()
void GetSelection (out int from, out int to)
void Replace (int from, int to, string value)
void Remove (int from, int to)
bool LoadFile (string file)
bool LoadFileNET (string file)
bool SaveFile (string file)
bool SaveFileNET (string file)
void DiscardEdits ()
void MarkDirty ()
void MaxLength (int value)
void WriteText (string text)
void AppendText (string text)
bool EmulateKeyPress (KeyEvent evt)
bool SetStyle (int start, int end, TextAttr style)
bool GetStyle (int position, inout TextAttr style)
bool SetDefaultStyle (TextAttr style)
TextAttr GetDefaultStyle ()
int XYToPosition (int x, int y)
bool PositionToXY (int pos, out int x, out int y)
void ShowPosition (int pos)
TextCtrlHitTestResult HitTest (Point pt, out int pos)
TextCtrlHitTestResult HitTest (Point pt, out int col, out int row)
void Copy ()
void Cut ()
void Paste ()
bool CanCopy ()
bool CanCut ()
bool CanPaste ()
void Undo ()
void Redo ()
bool CanUndo ()
bool CanRedo ()
void InsertionPoint (int value)
int InsertionPoint ()
void SetInsertionPointEnd ()
int GetLastPosition ()
void SetSelection (int from, int to)
void SelectAll ()
void SetEditable (bool editable)
bool Enable (bool enable)
virtual void OnDropFiles (Event evt)
override void Freeze ()
override void Thaw ()
override bool ScrollLines (int lines)
override bool ScrollPages (int pages)
override void UpdateUI_Add (EventListener value)
override void UpdateUI_Remove (EventListener value)
void Enter_Add (EventListener value)
void Enter_Remove (EventListener value)

Static Public Member Functions

static wxObject New (IntPtr wxobj)

Public Attributes

const int wxTE_NO_VSCROLL = 0x0002
const int wxTE_AUTO_SCROLL = 0x0008
const int wxTE_READONLY = 0x0010
const int wxTE_MULTILINE = 0x0020
const int wxTE_PROCESS_TAB = 0x0040
const int wxTE_LEFT = 0x0000
const int wxTE_CENTER = Alignment.wxALIGN_CENTER
const int wxTE_RIGHT = Alignment.wxALIGN_RIGHT
const int wxTE_RICH = 0x0080
const int wxTE_PROCESS_ENTER = 0x0400
const int wxTE_PASSWORD = 0x0800
const int wxTE_AUTO_URL = 0x1000
const int wxTE_NOHIDESEL = 0x2000
const int wxTE_DONTWRAP = Window.wxHSCROLL
const int wxTE_LINEWRAP = 0x4000
const int wxTE_WORDWRAP = 0x0000
const int wxTE_RICH2 = 0x8000
const string wxTextCtrlNameStr = "text"


Constructor & Destructor Documentation

this ( IntPtr  wxobj  ) 

Reimplemented from Control.

this ( Window  parent,
int  id,
string  value = "",
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = 0,
Validator  validator = null,
string  name = wxTextCtrlNameStr 
)

this ( Window  parent,
string  value = "",
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = 0,
Validator  validator = null,
string  name = wxTextCtrlNameStr 
)


Member Function Documentation

static wxObject New ( IntPtr  wxobj  )  [static]

Reimplemented from Control.

void Clear (  ) 

override void BackgroundColour ( Colour  value  ) 

override void ForegroundColour ( Colour  value  ) 

string Value (  ) 

void Value ( string  value  ) 

string GetRange ( int  from,
int  to 
)

int LineLength ( int  lineNo  ) 

string GetLineText ( int  lineNo  ) 

int GetNumberOfLines (  ) 

bool IsModified (  ) 

bool IsEditable (  ) 

bool IsSingleLine (  ) 

bool IsMultiLine (  ) 

void GetSelection ( out int  from,
out int  to 
)

void Replace ( int  from,
int  to,
string  value 
)

void Remove ( int  from,
int  to 
)

bool LoadFile ( string  file  ) 

bool LoadFileNET ( string  file  ) 

bool SaveFile ( string  file  ) 

bool SaveFileNET ( string  file  ) 

void DiscardEdits (  ) 

void MarkDirty (  ) 

void MaxLength ( int  value  ) 

void WriteText ( string  text  ) 

void AppendText ( string  text  ) 

bool EmulateKeyPress ( KeyEvent  evt  ) 

bool SetStyle ( int  start,
int  end,
TextAttr  style 
)

bool GetStyle ( int  position,
inout TextAttr  style 
)

bool SetDefaultStyle ( TextAttr  style  ) 

TextAttr GetDefaultStyle (  ) 

int XYToPosition ( int  x,
int  y 
)

bool PositionToXY ( int  pos,
out int  x,
out int  y 
)

void ShowPosition ( int  pos  ) 

TextCtrlHitTestResult HitTest ( Point  pt,
out int  pos 
)

TextCtrlHitTestResult HitTest ( Point  pt,
out int  col,
out int  row 
)

void Copy (  ) 

void Cut (  ) 

void Paste (  ) 

bool CanCopy (  ) 

bool CanCut (  ) 

bool CanPaste (  ) 

void Undo (  ) 

void Redo (  ) 

bool CanUndo (  ) 

bool CanRedo (  ) 

void InsertionPoint ( int  value  ) 

int InsertionPoint (  ) 

void SetInsertionPointEnd (  ) 

int GetLastPosition (  ) 

void SetSelection ( int  from,
int  to 
)

void SelectAll (  ) 

void SetEditable ( bool  editable  ) 

bool Enable ( bool  enable  ) 

virtual void OnDropFiles ( Event  evt  ) 

override void Freeze (  ) 

Reimplemented from Window.

override void Thaw (  ) 

Reimplemented from Window.

override bool ScrollLines ( int  lines  ) 

Reimplemented from Window.

override bool ScrollPages ( int  pages  ) 

Reimplemented from Window.

override void UpdateUI_Add ( EventListener  value  ) 

Reimplemented from Window.

override void UpdateUI_Remove ( EventListener  value  ) 

Reimplemented from Window.

void Enter_Add ( EventListener  value  ) 

void Enter_Remove ( EventListener  value  ) 


Member Data Documentation

const int wxTE_NO_VSCROLL = 0x0002

const int wxTE_AUTO_SCROLL = 0x0008

const int wxTE_READONLY = 0x0010

const int wxTE_MULTILINE = 0x0020

const int wxTE_PROCESS_TAB = 0x0040

const int wxTE_LEFT = 0x0000

const int wxTE_CENTER = Alignment.wxALIGN_CENTER

const int wxTE_RIGHT = Alignment.wxALIGN_RIGHT

const int wxTE_RICH = 0x0080

const int wxTE_PROCESS_ENTER = 0x0400

const int wxTE_PASSWORD = 0x0800

const int wxTE_AUTO_URL = 0x1000

const int wxTE_NOHIDESEL = 0x2000

const int wxTE_DONTWRAP = Window.wxHSCROLL

const int wxTE_LINEWRAP = 0x4000

const int wxTE_WORDWRAP = 0x0000

const int wxTE_RICH2 = 0x8000

const string wxTextCtrlNameStr = "text"


The documentation for this class was generated from the following file:
Generated on Sun Feb 1 21:30:29 2009 for wxD by  doxygen 1.5.4