Hi
I am creating a SlideEx using a LayoutSlideEx
…
presentation.Slides.AddEmptySlide(layoutSlide);
…
when I do this, the shapes present in the layout are not copied to the slide ( is this an issue or the default behavior?). So, I am copying the shapecollection elements one by one to slide
…
foreach (ShapeEx layoutShape in layoutShapeCollection)
{
AutoShapeEx shape = null;
shape = slide.Shapes[slide.Shapes.AddAutoShape(
ShapeTypeEx.Rectangle,
layoutShape.X,
layoutShape.Y,
layoutShape.Width,
layoutShape.Height
)] as AutoShapeEx;
shape.Name = layoutShape.Name;
}
…
when I do this all the shapes present in the LayoutSlide get copied to the Slide.Shapes
But the problem is, suppose, if the Shape is a Text Placeholder or a Title, then the default Font formatting’s( FontColor, FontBold, etc…) are not preserved when I copy the shapes from Layout to Slide.
What could be the reason and what is the resolution for this?