Profile Picture

NErmShape .SizeToContent();

Posted By Golay Jean-Philippe 14 Years Ago
Author
Message
Golay Jean-Philippe
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 8, Visits: 1
Solved using courrier new font arial give unexpected results

Golay Jean-Philippe
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 8, Visits: 1
It's what I have done
nDrawingDocument1.ActiveLayer.AddChild(mappingShape);
NStyle.SetTextStyle(mappingShape, new NTextStyle(fontStyle, Color.Black));
mappingShape.Style.TextStyle.StringFormatStyle.HorzAlign = Nevron.HorzAlign.Left;
mappingShape.SizeToContent();

But the text is still on 2 lines

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Erm shapes automatically resize themselves to their content, but in order for the autosize to work you must add them to a drawing document first.



Best Regards,
Nevron Support Team



Golay Jean-Philippe
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 8, Visits: 1
If I use a NErmShape and call mappingShape.SizeToContent();
The result is like the attachment?
Is there any solution to really fit first line?

Attachments
Image1.gif (105 views, 5.00 KB)


Similar Topics


Reading This Topic