AutoLayouts

Hi Alexey!

How can I determine that TextFrame belongs to "Title Area for AutoLayouts" or to "Object Area for AutoLayouts"?

Dear CAV,

If I’m not mistaken AutoLayouts are Placeholders.
You can get type of placeholder as Placeholder.PlaceholderType.

But now it’s possible to recognize text holders only.


foreach(Shape shape in pres.MainMaster.Shapes)

{

TextFrame tf = shape.TextFrame;
//tf.Text returns text in "Title Area for AutoLayouts" and "Object Area for AutoLayouts"

//How can I determine whether TextFrame belongs to "Title Area for AutoLayouts" or to "Object Area for AutoLayouts"
//and do not draw it?



}


Dear CAV,

We check internal structure of rectangle to determine this. I added public property
Rectangle.IsMasterTextHolder in 1.8.6 hot fix. Hope it can help.