修改label文字:
source.DefaultLabelProperties.Style.Font.Size=9;
修改文字的位置:
source.DefaultLabelProperties.Layout.Alignment=MapInfo.Text.Alignment.BottomCenter;

惨痛教训:
        花了一个半小时的时间去调位置,老是纠缠在attributes上,那是一个枚举值,只能控制那些属性的设置有效而已。加上开发文档的错误(完全错误,p60)
        然后,因为看到Layout属性是只读,所以几乎没有注意,而是在其他地方反复试验,折腾了半天。

相关文章:

  • 2021-11-29
  • 2021-12-01
  • 2021-11-11
  • 2021-11-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-05-16
猜你喜欢
  • 2021-11-12
  • 2021-06-02
  • 2022-12-23
  • 2021-12-17
  • 2021-10-22
  • 2022-01-21
相关资源
相似解决方案