TXTextControl.TextCharCollection.Add Method

Adds a character to the document.

Introduced: 23.0.

Add(Char)

Inserts a character at the current text input position.

[C#]
public bool Add(char character);
[Visual Basic]
Public Function Add(character As Char) As Boolean
Member Description
character

Specifies the character to insert.

Add(Char, String)

Inserts a character at the current text input position using the specified font.

[C#]
public bool Add(char character, string fontName);
[Visual Basic]
Public Function Add(character As Char, fontName As String) As Boolean
Member Description
character

Specifies the character to insert.

fontName

Specifies the name of the font which is used for the specified character.

Add(Char, String, Int32)

Inserts a character at the specified position using the specified font.

[C#]
public bool Add(char character, string fontName, int textPosition);
[Visual Basic]
Public Function Add(character As Char, fontName As String, textPosition As Integer) As Boolean
Member Description
character

Specifies the character to insert.

fontName

Specifies the name of the font which is used for the specified character.

textPosition

Specifies a text input position. The first input position in a document is 0.

Add(ControlChars)

Inserts a control character at the current text input position.

[C#]
public bool Add(ControlChars controlChar);
[Visual Basic]
Public Function Add(controlChar As ControlChars) As Boolean
Member Description
controlChar

Specifies a control character to insert. It can be one of the ControlChars values.

Add(ControlChars, Int32)

Inserts a control character at the specified text input position.

[C#]
public bool Add(ControlChars controlChar, int textPosition);
[Visual Basic]
Public Function Add(controlChar As ControlChars, textPosition As Integer) As Boolean
Member Description
controlChar

Specifies a control character to insert. It can be one of the ControlChars values.

textPosition

Specifies a text input position. The first input position in a document is 0.

See Also