Edit

Share via


Characters Interface

Definition

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

public interface class Characters : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002095D-0000-0000-C000-000000000046")]
public interface Characters : System.Collections.IEnumerable
type Characters = interface
    interface IEnumerable
Public Interface Characters
Implements IEnumerable
Attributes
Implements

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(String) or InsertBefore(String) method to add characters to a Range object.

Properties

Application

Gets a Application object that represents the creator of the specified object.

Count

Gets the number of items in the specified collection.

Creator

Gets a value that indicates the application in which the specified object was created.

First

Gets a Range object that represents the first character in a document.

Item[Int32]

Gets an individual object in a collection.

Last

Gets a Range object that represents the last character, word, or sentence in a document.

Parent

Gets an object that represents the parent object of the specified object.

Methods

GetEnumerator()

Applies to