Export (0) Print
Expand All

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)

'Usage
Public Class haractersImplementation
	Implements Characters
End Class
Dim haractersImplementation1 As New haractersImplementation()

public interface Characters : IEnumerable
public interface Characters implements IEnumerable
public interface Characters implements IEnumerable

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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft