wx.MaskedEdit.MaskedEditService Class Reference

List of all members.

Public Member Functions

System.Collections.IEnumerator GetEnumerator ()
 MaskedEditService (TextCtrl textCtrl, string textMask, params EditField[] fields)
int NearestField (int textCursorPosition)
int NearestField (System.Drawing.Point position)
void OnChar (object sender, Event evt)
void RefreshValue ()
void SelectField (int i)
void StepLeft ()
void StepRight ()

Static Public Member Functions

static string ExpandText (string textMask, params EditField[] fields)

Properties

int Count [get]
string TextMask [get]
EditField this [int i] [get]


Detailed Description

Internal class providing service level for masked text edit.

Constructor & Destructor Documentation

wx.MaskedEdit.MaskedEditService.MaskedEditService ( TextCtrl  textCtrl,
string  textMask,
params EditField[]  fields 
)


Member Function Documentation

static string wx.MaskedEdit.MaskedEditService.ExpandText ( string  textMask,
params EditField[]  fields 
) [static]

Return expanded copy of textMask referring to info from fields and update of positions in the fields.

System.Collections.IEnumerator wx.MaskedEdit.MaskedEditService.GetEnumerator (  ) 

int wx.MaskedEdit.MaskedEditService.NearestField ( int  textCursorPosition  ) 

int wx.MaskedEdit.MaskedEditService.NearestField ( System.Drawing.Point  position  ) 

void wx.MaskedEdit.MaskedEditService.OnChar ( object  sender,
Event  evt 
)

This will be called on adding a new character input to the currently selected field. This is made public to ease use of masked edits in tables.

void wx.MaskedEdit.MaskedEditService.RefreshValue (  ) 

Updates the text content from the values of the fields-

void wx.MaskedEdit.MaskedEditService.SelectField ( int  i  ) 

Select field i presupposing that ExpandText() has been done.

void wx.MaskedEdit.MaskedEditService.StepLeft (  ) 

This is the action triggered by the "Cursor left" key: Step to field 0. Please note, that this action will use the order of the fields w.r.t. their index. Prerequisite: We have a current selection.

void wx.MaskedEdit.MaskedEditService.StepRight (  ) 

This is the action triggered by the "Cursor right" key: Step to field 0. Please note, that this action will use the order of the fields w.r.t. their index. Prerequisite: We have a current selection.


Property Documentation

int wx.MaskedEdit.MaskedEditService.Count [get]

Number of fields.

string wx.MaskedEdit.MaskedEditService.TextMask [get]

The text mask defining the format of the input.

EditField wx.MaskedEdit.MaskedEditService.this[int i] (  )  [get]

Gets the field of index i. Negative numbers will count the fields from the end. So, -1 designates the last edit field.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads