Are .NET fonts and TeeChart fonts incompatible ?
Posted: Fri Feb 11, 2005 9:13 am
Hi,
In my application I have my own .NET font dialog, and I want to apply the user-selected font for my axis titles. (kinda shortcut for TeeChart editor).
But I get an error message : cannot convert System.Drawing.Font to Steema.TeeChart.Drawing.ChartFont ???
My code looks like:
Steema.TeeChart.Axis axis;
fontDialog = new FontDialog();
if(fontDialog.ShowDialog() != DialogResult.Cancel )
{
axis.Title.Font = fontDialog.Font;
}
Also an explicit cast does not work here.
Are the .NET and TeeChart fonts incompatible ??
Last question ... in your TeeChart editor, the edited title is changed immediately. How to do that .. simply an tChart1.Invalidate() ?
Thanks a lot.
Antoon Koster
Netherlands
In my application I have my own .NET font dialog, and I want to apply the user-selected font for my axis titles. (kinda shortcut for TeeChart editor).
But I get an error message : cannot convert System.Drawing.Font to Steema.TeeChart.Drawing.ChartFont ???
My code looks like:
Steema.TeeChart.Axis axis;
fontDialog = new FontDialog();
if(fontDialog.ShowDialog() != DialogResult.Cancel )
{
axis.Title.Font = fontDialog.Font;
}
Also an explicit cast does not work here.
Are the .NET and TeeChart fonts incompatible ??
Last question ... in your TeeChart editor, the edited title is changed immediately. How to do that .. simply an tChart1.Invalidate() ?
Thanks a lot.
Antoon Koster
Netherlands