For the color, the problem seems to be some combination of:
TextBox.Format.FillEfects.Type is set to BackgroundType.NoBackground instead of BackgroundType.Color
TextBox.Format.FillColor is "0"
I'm not sure why this happens in one box but not the others.
As a workaround I tried to set FillEfects.Type to BackgroundType.Color for every case that I had FillEfects.Color as non-white. This wasn't enough. So I also tried:
- Code: Select all
textBox.Format.FillColor = textBox.FillColor;
- Code: Select all
textBox.Format.FillColor = textBox.Format.FillEfects.Color;
- Code: Select all
int argb = textBox.FillColor.ToArgb();
textBox.Format.FillColor = Color.FromArgb(argb);
However, none of these did anything to change textBox.Format.Color. It remains "00000000", even though textBox.FillColor and textBox.Format.FillEfects.Color are both correctly "ffcc99ff".