TXTextControl.EditableRegion Constructor

Initializes a new instance of the EditableRegion class.

EditableRegion(String, Int32)

Creates an editable region with the specified user name and/or id. The start and length of the editable region are initialized to zero. When a zero-length editable region is inserted, the current text selection defines it position and length.

[C#]
public EditableRegion(string userName, int id);
[Visual Basic]
Public Sub New(ByVal userName As String, ByVal id As Integer)
Parameter Description
userName

Specifies the name of the user who can edit the region. This parameter can be null or an empty string to indicate, that no user name has been specified and the region can be edited by everyone.

id

Specifies an identifier for the editable region. This parameter can be 0 to indicate, that the editable region has no identifier.

EditableRegion(String, Int32, Int32, Int32)

Creates an editable region with the specified user name, id, start position and length.

[C#]
public EditableRegion(string userName, int id, int start, int length);
[Visual Basic]
Public Sub New(ByVal userName As String, ByVal id As Integer, ByVal start As Integer, ByVal length As Integer)
Parameter Description
userName

Specifies the name of the user who can edit the region. This parameter can be null or an empty string to indicate, that no user name has been specified and the region can be edited by everyone.

id

Specifies an identifier for the editable region. This parameter can be 0 to indicate, that the editable region has no identifier.

start

Specifies the index (one-based) of the first character which belongs to the editable region.

length

Specifies the number of characters which belong to the editable region.

See Also