Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ShapeTextRange.GetParagraphs() Method

Returns an array of all paragraphs that compose a shape’s text.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

ShapeTextRange[] GetParagraphs()

#Returns

Type Description
ShapeTextRange[]

A DevExpress.Spreadsheet.ShapeTextRange[] object that is an array of paragraph ranges.

#Remarks

The shape text can contain multiple paragraphs divided by a line break or paragraph mark. The ShapeTextRange.IsMixedParagraph property determines whether the shape text contains multiple paragraphs with mixed properties.

Use the GetParagraphs method to get all shape text paragraphs. Each paragraph is represented by a ShapeTextRange object.

Use the ShapeTextRange.ParagraphFormat property to specify the retrieved range’s paragraph properties (alignment, indentation, etc.).

Call the ShapeTextRange.Delete method to remove a paragraph range.

See Also