Characters Interface

A collection of characters in a selection, range, or document.

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

Syntax

'Declaration
<GuidAttribute("0002095D-0000-0000-C000-000000000046")> _
Public Interface Characters _
    Inherits IEnumerable
'Usage
Dim instance As Characters
[GuidAttribute("0002095D-0000-0000-C000-000000000046")]
public interface Characters : IEnumerable

Remarks

There is no Character object; instead, each item in the Characters collection is a Range object that represents one character.

Use the Characters property to return the Characters collection.

Use Characters(index), where index is the index number, to return a Range object that represents one character. The index number represents the position of a character in the Characters collection.

The Count property for this collection in a document returns the number of items in the main story only. To count items in other stories use the collection with the Range object.

An Add method isn't available for the Characters collection. Instead, use the InsertAfter or InsertBefore method to add characters to a Range object.

See Also

Reference

Characters Members

Microsoft.Office.Interop.Word Namespace