Partager via


TextRange2.Words[Int32, Int32] Propriété

Définition

Obtient le sous-ensemble de mots texte spécifié. En lecture seule.

public:
 property Microsoft::Office::Core::TextRange2 ^ Words[int, int] { Microsoft::Office::Core::TextRange2 ^ get(int Start, int Length); };
public Microsoft.Office.Core.TextRange2 Words[int Start = -1, int Length = -1] { get; }
member this.Words(int * int) : Microsoft.Office.Core.TextRange2
Public ReadOnly Property Words(Optional Start As Integer = -1, Optional Length As Integer = -1) As TextRange2

Paramètres

Start
Int32

Premier mot de la plage renvoyée.

Length
Int32

Nombre de mots à renvoyer.

Valeur de propriété

TextRange2

Remarques

Start Si et Length sont omis, la plage retournée commence par le premier mot et se termine par le dernier paragraphe de la plage spécifiée.

Si Start est spécifié mais Length omis, la plage retournée contient un mot.

Si Length est spécifié mais Start omis, la plage retournée commence par le premier mot de la plage spécifiée.

Si Start est supérieur au nombre de mots dans le texte spécifié, la plage retournée commence par le dernier mot de la plage spécifiée.

Si Length est supérieur au nombre de mots du mot de début spécifié à la fin du texte, la plage retournée contient tous ces mots.

S’applique à