Edit

Share via


TextRange2.Paragraphs[Int32, Int32] Property

Definition

Gets the specified subset of text paragraphs. Read-only.

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

Parameters

Start
Int32

The first paragraph in the returned range.

Length
Int32

The number of paragraphs to be returned.

Property Value

TextRange2

Remarks

If both Start and Length are omitted, the returned range starts with the first paragraph and ends with the last paragraph in the specified range.

If Start is specified but Length is omitted, the returned range contains one paragraph.

If Length is specified but Start is omitted, the returned range starts with the first paragraph in the specified range.

If Start is greater than the number of paragraphs in the specified text, the returned range starts with the last paragraph in the specified range.

If Length is greater than the number of paragraphs from the specified starting paragraph to the end of the text, the returned range contains all those paragraphs.

Applies to