Compartir a través de


TextFrame.Characters Method

Returns a Characters object that represents a range of characters within a shape’s text frame.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Characters ( _
    Start As Object, _
    Length As Object _
) As Characters
'Usage
Dim instance As TextFrame
Dim Start As Object
Dim Length As Object
Dim returnValue As Characters

returnValue = instance.Characters(Start, _
    Length)
Characters Characters(
    Object Start,
    Object Length
)

Parameters

  • Start
    Type: System.Object

    Optional Object. The first character to be returned. If this argument is either set to 1 or omitted, the Characters method returns a range of characters starting with the first character.

  • Length
    Type: System.Object

    Optional Object. The number of characters to be returned. If this argument is omitted, the Characters method returns the remainder of the string (everything after the character that was set as the Start argument).

Return Value

Type: Microsoft.Office.Interop.Excel.Characters

Remarks

You can use the Characters object to add and format characters within the text frame.

The Characters object isn't a collection.

See Also

Reference

TextFrame Interface

TextFrame Members

Microsoft.Office.Interop.Excel Namespace