public function setParagraphs($paragraphs = null)
{
if (!is_array($paragraphs)) {
throw new \Exception("Invalid \\PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph[] array passed.");
}
$this->richTextParagraphs = $paragraphs;
$this->activeParagraph = count($this->richTextParagraphs) - 1;
return $this;
}