TXTextControl.SubTextPart Constructor

Initializes a new instance of the SubTextPart class.

SubTextPart(String, Int32)

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

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

Specifies the name of the subtextpart. This parameter can be null or an empty string to indicate, that the subtextpart has no name.

id

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

SubTextPart(String, Int32, Int32, Int32)

Creates a subtextpart with the specified name, id, start position and length.

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

Specifies the name of the subtextpart. This parameter can be null or an empty string to indicate, that the subtextpart has no name.

id

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

start

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

length

Specifies the number of characters which belong to the subtextpart.

See Also