GetLinesCount()
Paragraph::GetLinesCount() method
Get number of lines in a paragraph.
int32_t Aspose::Slides::Paragraph::GetLinesCount() override
Return Value
Lines count in a paragraph
Remarks
Example:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
System::SharedPtr<ISlide> sld = pres->get_Slide(0);
System::SharedPtr<IAutoShape> ashp = sld->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 150.0f, 75.0f, 150.0f, 50.0f);
System::SharedPtr<IParagraph> para = ashp->get_TextFrame()->get_Paragraph(0);
System::SharedPtr<IPortion> portion = para->get_Portion(0);
portion->set_Text(u"Aspose Paragraph GetLinesCount() Example");
System::Console::WriteLine(u"Lines Count = {0}", para->GetLinesCount());
See Also
- Class Paragraph
- Namespace Aspose::Slides
- Library Aspose.Slides