Sentences Sentences Sentences Interface

Definition

A collection of Range objects that represent all the sentences in a selection, range, or document. There is no Sentence object.

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

Remarks

Use the Sentences property of a Selection, Range , or Document object to return the Sentences collection.

Use Sentences(index), where index is the index number, to return a Range object that represents a sentence. The index number represents the position of a sentence in the Sentences 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.

The Add method isn't available for the Sentences collection. Instead, use the InsertAfter(String) or InsertBefore(String) method to add a sentence to a Range object.

Properties

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Count Count Count

Returns the number of items in the specified collection.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

First First First

Returns a Range object that represents the first sentence, word, or character in a document, selection or range.

Item[Int32] Item[Int32] Item[Int32]

Returns an individual object in a collection.

Last Last Last

Returns a Range object that represents the last character, word, or sentence in a document, selection, or range.

Parent Parent Parent

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

Methods

GetEnumerator() GetEnumerator() GetEnumerator()

Applies to