TextRange2.Paragraphs[Int32, Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.