BackColor for TextFrame


#1

Hi Alexey,

TextFrame.FillFormat.BackColor always returns 0xffffff (white color), (i try TextFrame.FillFormat.ForeColor and it returns correct value but for TextFrame with no filling it returns “Automatic” color)


#2

Dear CAV,

FillFormat.BackColor have different meanings for different fill styles:

  1. Solid. PP use it if ForeColor is transparent.
  2. Gradient/One Color. Not used at all except alpha value.
  3. Gradient/Two colors. The second color.
If BackColor not defined in ppt file then it has Color.White value by default for all fill styles.

#3

ok thanks,

question: TextFrame.LineFormat.Width always return 1 (however in PP Line has value 0.75).

(also if TextFrame do not have Lines (No Lines in PP) TextFrame.LineFormat probably must return "null")


#4

Another question: why ((Table)shape).FillFormat and ((Table)shape).LineFormat has ?


#5

Dear CAV,

They have null value because were not implemented for GroupShape.


#6

And what about previous question? (TextFrame.LineFormat)


#7

Dear CAV,

Will be corrected in the next hot fix.


#8

“if TextFrame do not have Lines (No Lines in PP) TextFrame.LineFormat probably must return “null”)” - this not fixed yet?

How can i determine that TextFrame (or TextHolder) does not have lines?


#9

Dear CAV,

Interesting question… LineFormat is always not null now. At first please check 1.4.6 hot fix.
Probably later I will add Shape.Frame property to identify type of frame (Rectangle, Ellipse an etc.).