Sentences Interface
A collection of Range objects that represent all the sentences in a selection, range, or document. There is no Sentence object.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Public Class entencesImplementation
Implements Sentences
End Class
Dim entencesImplementation1 As New entencesImplementation()
Syntax
Public Interface Sentences
Inherits IEnumerable
public interface Sentences : IEnumerable
public interface class Sentences : public IEnumerable
public interface Sentences implements IEnumerable
public interface Sentences implements IEnumerable
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 or InsertBefore method to add a sentence to a Range object.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Microsoft.Office.Interop.Word Namespace