Characters Characters Characters Interface

Definition

Represents characters in an object that contains text. The Characters object lets you modify any sequence of characters contained in the full text string.

public interface class Characters
[System.Runtime.InteropServices.Guid("00020878-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Characters
Public Interface Characters
Attributes

Remarks

Use Characters(start, length), where start is the start character number and length is the number of characters, to return a Characters object.

The Characters method is necessary only when you need to change some of an object’s text without affecting the rest (you cannot use the Characters method to format a portion of the text if the object doesn’t support rich text). To change all the text at the same time, you can usually apply the appropriate method or property directly to the object.

Properties

Application Application Application

Returns an Application object that represents the Microsoft Excel application.

Caption Caption Caption

The text of this range of characters.

Count Count Count

Returns the number of objects in the collection.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created.

Font Font Font

Returns a Font object that represents the font of the specified object.

Parent Parent Parent

Returns the parent object for the specified object.

PhoneticCharacters PhoneticCharacters PhoneticCharacters

Returns or sets the phonetic text in the specified Characters object.

Text Text Text

Returns or sets the text for the specified object.

Methods

Delete() Delete() Delete()

Deletes the object.

Insert(String) Insert(String) Insert(String)

Inserts a string preceding the selected characters.

Applies to