Commit 9e1a7dba authored by Ilya Kirillov's avatar Ilya Kirillov

В класс CDocument добавлена функция Get_FirstParagraph.

parent c312b994
......@@ -16421,6 +16421,15 @@ CDocument.prototype.Get_SectionProps = function()
return new CDocumentSectionProps(SectPr);
};
CDocument.prototype.Get_FirstParagraph = function()
{
if (type_Paragraph == this.Content[0].GetType())
return this.Content[0];
else if (type_Table == this.Content[0].GetType())
return this.Content[0].Get_FirstParagraph();
return null;
};
//----------------------------------------------------------------------------------------------------------------------
// Settings
//----------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment