Xceed Grid for WinForms v4.3 Documentation
TextEditor Constructor(WinTextBox,String,Boolean)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Editors Namespace > TextEditor Class > TextEditor Constructor : TextEditor Constructor(WinTextBox,String,Boolean)
A reference to a Xceed.Editors.WinTextBox control representing the control that will be used as a template to create the controls that will edit the content of cells which have a string datatype.
A string representing the property used to set the control's value.
Indicates if the control should handle the mouse click once it is activated.
Initializes a new instance of the TextEditor class specifying the WinTextBox control that will be used as a template to edit the content of cells which have a string datatype, as well as other characteristics that will apply to the editor.
Syntax
'Declaration
 
Protected Function New( _
   ByVal templateControl As WinTextBox, _
   ByVal propertyName As String, _
   ByVal handleActivationClick As Boolean _
)
'Usage
 
Dim templateControl As WinTextBox
Dim propertyName As String
Dim handleActivationClick As Boolean
 
Dim instance As New TextEditor(templateControl, propertyName, handleActivationClick)
protected TextEditor( 
   WinTextBox templateControl,
   string propertyName,
   bool handleActivationClick
)

Parameters

templateControl
A reference to a Xceed.Editors.WinTextBox control representing the control that will be used as a template to create the controls that will edit the content of cells which have a string datatype.
propertyName
A string representing the property used to set the control's value.
handleActivationClick
Indicates if the control should handle the mouse click once it is activated.
Remarks

In the case where CreateControlMode is set to Xceed.Grid.CreateControlMode.SingleInstance (default), the templateControl will be used directly. If CreateControlMode is set to ClonedInstance, the CreateControl method will be called to clone the templateControl when needed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TextEditor Class
TextEditor Members
Overload List