font problems
Posted: Mon Jan 02, 2006 4:10 pm
hi there,
i got a problem about font types, .NET, C#
i am loading several fonts from a saved aquisition like:
or
unfortunaly it seems this font differs from the System.Drawings.Font class since something like this:
cannot be done..
even with typcasting its not possible.
i could get the single properties like
but of course font properties of system labels are writeprotected, so you have to use the fontdialog or create a new font, either
way u got to give a full font-property-container...but is this really true?
seems absurd, since i suppose this to be an easy- or often needed- problem, any ideas?
thanks and regards,
Robert
i got a problem about font types, .NET, C#
i am loading several fonts from a saved aquisition like:
Code: Select all
this.chart.GetSeries.Chart.Axes.Bottom.Title.Font;
Code: Select all
this.chart.GetTChart.Header.Font;
Code: Select all
this.label1.Font = this.chart.GetTChart.Header.Font;
even with
Code: Select all
this.label1.Font = (System.Drawings.Font) this.chart.GetTChart.Header.Font;
i could get the single properties like
Code: Select all
this.lyaxisfonttest.Strikeout=this.chart.GetSeries.Chart.Axes.Left.Title.Font.Strikeout;
way u got to give a full font-property-container...but is this really true?
seems absurd, since i suppose this to be an easy- or often needed- problem, any ideas?
thanks and regards,
Robert