Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Setting FontData.Bold via Appearance object on cell
posted

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

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    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.

Children
No Data