Jump to content
Software FX Community

Point Label Bolding


User (Legacy)

Recommended Posts

Hi,

I wanted to bold the point label associated with a specific point in a

series on my chart.

The code I am using is:

chartTrend.Point(highestCnt).PointLabels = True

chartTrend.Point(highestCnt).PointLabelAlign = LabelAlign.Left

Now if I try to use the following to bold the point label, it complains that

Bold is ReadOnly.

chartTrend.Point(highestCnt).PointLabelFont.Bold = True

How can I bold the particular point label?

Please help!

Link to comment
Share on other sites

Hi,

Thanks for replying to my questions.

I tried using the following:

chartTrend.Point(highestCnt).PointLabelFont = New

Font(System.Drawing.FontFamily.GenericSansSerif, FontStyle.Bold)

However, it just made my point label disappear.

Please help as to what am I doing wrong.

Thanks

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JaSIwiXIEHA.3928@webserver3.softwarefx.com...

> Font objects in .NET are "immutable", what you need to do is:

>

> chartTrend.Point(highestCnt).PointLabelFont = new Font(....);

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Have you tried different Font constructors ?

--

Regards,

JC

Software FX Support

"Tarun Jain" <tjain AT nc Dot rr Dot com> wrote in message

news:ct81hYYIEHA.2848@webserver3.softwarefx.com...

> Hi,

> Thanks for replying to my questions.

> I tried using the following:

>

> chartTrend.Point(highestCnt).PointLabelFont = New

> Font(System.Drawing.FontFamily.GenericSansSerif, FontStyle.Bold)

>

> However, it just made my point label disappear.

>

> Please help as to what am I doing wrong.

>

> Thanks

>

>

>

>

>

>

> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

> news:JaSIwiXIEHA.3928@webserver3.softwarefx.com...

> > Font objects in .NET are "immutable", what you need to do is:

> >

> > chartTrend.Point(highestCnt).PointLabelFont = new Font(....);

> >

> > --

> > FP

> > Software FX

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...