Skip to main content
Row

ShapeTextRange.GetParagraphs() Method

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.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