-
Notifications
You must be signed in to change notification settings - Fork 534
Open
Labels
Milestone
Description
hi there.
i need to write a paragraph of text, follow by a title and a bullet list, like this
but when i set the bullet it set to all lines in the shape.
is possible to add bullet only one portion of the shape?
for the moment i draw a bullet before the line and set indent and left margin to fake the bullet
` $shape = $currentSlide->createRichTextShape();
$shape->setHeight(150);
$shape->setWidth(460);
$shape->setOffsetX(210);
$shape->setOffsetY(150);
$shape->getActiveParagraph()->getAlignment()->setHorizontal( Alignment::HORIZONTAL_LEFT );
$textRun = $shape->createTextRun($experiencia."\n");
$textRun->getFont()->setName('Arial Narrow')->setBold(false)->setSize(10)->setColor($colorOtro);
if(count($premios)<>1){
$textRun = $shape->createTextRun(trim($titulos[1])."\r\n");
$textRun->getFont()->setName('Arial Narrow')->setBold(true)->setSize(10)->setColor($colorAzul);
$numItems = count($premios);$i = 0;
foreach($premios as $premio){
if(++$i <> $numItems) {
$textRun = $shape->createTextRun("• ");
$textRun->getFont()->setName('Arial Narrow')->setBold(false)->setSize(12)->setColor($colorOtro);
$textRun = $shape->createTextRun($premio."\n");
$textRun->getFont()->setName('Arial Narrow')->setBold(false)->setSize(10)->setColor($colorOtro);
}
}
}
if(count($asesorias)<>1){
$textRun = $shape->createTextRun("\n");
$textRun = $shape->createTextRun(trim($titulos[2])."\r\n");
$textRun->getFont()->setName('Arial Narrow')->setBold(true)->setSize(10)->setColor($colorAzul);
$numItems = count($asesorias);$i = 0;
foreach($asesorias as $asesoria){
if(++$i <> $numItems) {
$textRun = $shape->createTextRun("• ");
$textRun->getFont()->setName('Arial Narrow')->setBold(false)->setSize(12)->setColor($colorOtro);
$textRun = $shape->createTextRun($asesoria."\n");
$textRun->getFont()->setName('Arial Narrow')->setBold(false)->setSize(10)->setColor($colorOtro);
}
}
}
$shape->getActiveParagraph()->getAlignment()->setMarginLeft(12)->setIndent(-12);`
thanks for your time. :)