Good Morning guys,
I am trying to create an Appearance object with the FontData.Bold property set to true and assign this object to a Cell using the UltraGrid.
var b new Appearance("a1");
b.Data.FontData.Bold = DefaultableBoolean.True;
_grid.DisplayLayout.Appearances.Add(b);
_grid.Rows[0].Cells[2].Appearance = _grid.DisplayLayout.Appearances["a1"];
This fails to work.
Thanks
Hi,
The Data property returns an AppearanceData which is essentially just a struct that is used for appearance resolution and merging. Frankly, I was surprised to discover that the property was even public, but I guess we use it across a lot of difference assemblies.
Anyway, as a rule, you should pretty much never have to use the Data property on the Appearance. It's basically for Infragistics internal use.
Just an update.... This seems to work if I do this..
b.FontData.Bold = DefaultableBoolean.True;
Can you explain what the difference between b.FontData b.Data.FontData is.
Thank you