Message 1 of 3
How to draw text at Line? How to calc direction for text placed on the line?

Not applicable
07-26-2012
01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I did DrawableOverrule instance and override WorldDraw method.
In this method I have checked:
public override bool WorldDraw(Drawable d, WorldDrawwd)
{
if (d isLine)
{
Line line = (Line)d;
Next I want to draw text placed on the line and I did:
wd.Geometry.Text(line.StartPoint, normal, direction
Question is - how to calculate required direction for text that text should be placed on the line? Is it easy way to do it?
Thanks!