Hi,
again .
Is it possible to have the width an height of the annotation box when
Annotation.Sizing = AnnotationXYSizing.Automatic;
??
Kr
Antonio Pinnelli
Annotation Size
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Annotation Size
This should do the trick:
EDIT:
make that
Code: Select all
PointInt p = m_chart.MeasureText(annotation.Text, annotation.TextStyle.Font);
int width = p.X +annotation.AutoSizePadding;
int height = p.Y +annotation.AutoSizePadding;
make that
Code: Select all
int width = p.X +annotation.AutoSizePadding * 2;
int height = p.Y +annotation.AutoSizePadding * 2;
LightningChart Support Team, PT