首页 > 其他 > 详细

创建文本TIP

时间:2014-08-14 16:10:38      阅读:312      评论:0      收藏:0      [点我收藏+]

public ITextElement CreateTextElement(double x, double y, string text)
{
IBalloonCallout bc = CreateBallonCallout(x, y);
IRgbColor rgb = new RgbColorClass();
{
rgb.Green = 255;
}
ITextSymbol ts = new TextSymbolClass();
{
ts.Color = rgb;
}
IFormattedTextSymbol fts = ts as IFormattedTextSymbol;
{
fts.Background = bc as ITextBackground;
}
ts.Size = 18;
IPoint point = new PointClass();
{
double width = axmap.Extent.Width / 13;
double height = axmap.Extent.Height / 20;
point.PutCoords(x + width, y + height);
}
ITextElement te = new TextElementClass();
{
te.Symbol = ts;
te.Text = text;
}
IElement e = te as IElement;
{
e.Geometry = point;
}
return te;
}

创建文本TIP,布布扣,bubuko.com

创建文本TIP

原文:http://www.cnblogs.com/3Sblogs/p/3912422.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!