Characters Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
Returns an Application object that represents the Microsoft Excel application. |
Caption |
The text of this range of characters. |
Count |
Returns the number of objects in the collection. |
Creator |
Returns a 32-bit integer that indicates the application in which this object was created. |
Font |
Returns a Font object that represents the font of the specified object. |
Parent |
Returns the parent object for the specified object. |
PhoneticCharacters |
Returns or sets the phonetic text in the specified Characters object. |
Text |
Returns or sets the text for the specified object. |
Methods
Delete() |
Deletes the object. |
Insert(String) |
Inserts a string preceding the selected characters. |