- 积分
- 550
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-12-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用以下代码加入一个Legend:
LayoutLegend aLegend;
if (mapLayout1.GetLegends().Count > 0)
{
aLegend = mapLayout1.GetLegends()[0];
}
else
{
aLegend = mapLayout1.AddLegend(200, this.mapLayout1.Height - 100);
}
aLegend.Width = 500;
aLegend.Height = 50;
aLegend.LegendStyle = MeteoInfoC.Layout.LegendStyles.Bar_Horizontal;
aLegend.LegendLayer = aLayer;
aLegend.Font = new Font("宋体", 21);
虽然指定了图例的横、高,但画出来后仍为默认值:
另外,手动修改了图例的高后,这个高度的值只是边框的,图例的宽度没有变化。
请王老师指正。
|
|