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
860
Missing "WorkbookUserDefinedStyle" Class
posted

Hi,

while working with the Infragistics Excel Engine in ASP.NET, especially with styles, I stumbled upon an exception "Unable to cast object of type 'Infragistics.Documents.Excel.WorkbookUserDefinedStyle' to type [...]". Besides the facts that I made a mistake in my code and that a user defined style can be cast as a WorkbookStyle like here:

WorkbookStyle style = (WorkbookStyle)workBook.Styles["StyleName"];

I have two questions:

  1. Why is a user defined workbook style of type "WorkbookUserDefinedStyle" and could I have any advantages using this type?
  2. Why does the type "WorkbookUserDefinedStyle" not appear in the documentation and/or is declared "private"?

Just because I'm curious...

Parents Reply Children
No Data