mapx+vb实战摘要(五)
发表于:2007-06-30来源:作者:点击数:
标签:
1如何修改柱状专题图的样式? Map1.DataSets.Item(DsName).Themes(trafficflubar).Properties.Size = BarSize Map1.DataSets.Item(DsName).Themes(trafficflubar).Properties.BarWidth = BarWidth Map1.DataSets.Item(DsName).Themes(trafficflubar).ThemePro
1如何修改柱状
专题图的样式?
Map1.DataSets.Item(DsName).Themes("trafficflubar").Properties.Size = BarSize
Map1.DataSets.Item(DsName).Themes("trafficflubar").Properties.BarWidth = BarWidth
Map1.DataSets.Item(DsName).Themes("trafficflubar").ThemeProperties.MultivarCategories.Item(1).style.RegionColor = SmallTruck_Color
Map1.DataSets.Item(DsName).Themes("trafficflubar").ThemeProperties.MultivarCategories.Item(2).style.RegionColor = MiddleTruck_Color
Map1.DataSets.Item(DsName).Themes("trafficflubar").ThemeProperties.MultivarCategories.Item(3).style.RegionColor = BigTruck_Color
2如何修改饼状专题图的样式?
Map1.DataSets.Item(DsName).Themes("trafficflupiebar").Properties.Size = PieBarSize
@#Map1.DataSets.Item(DsName).Themes("trafficflupiebar").Properties.Width = PieBarWidth
Map1.DataSets.Item(DsName).Themes("trafficflupiebar").ThemeProperties.MultivarCategories.Item(1).style.RegionColor = SmallTruck_Color
Map1.DataSets.Item(DsName).Themes("trafficflupiebar").ThemeProperties.MultivarCategories.Item(2).style.RegionColor = MiddleTruck_Color
Map1.DataSets.Item(DsName).Themes("trafficflupiebar").ThemeProperties.MultivarCategories.Item(3).style.RegionColor = BigTruck_Color
Map1.DataSets.Item(DsName).Themes("trafficflupiebar").ThemeProperties.MultivarCategories.Item(4).style.RegionColor = SmallCar_Color
3如何修改标注的样式?
Set oStyle = New MapXLib.style
oStyle.TextFont.Size = 12
oStyle.TextFont.Bold = True
oStyle.SymbolFontColor =
vbWhite
oStyle.TextFontBackColor = vbBlue
oStyle.TextFontOpaque = True
Map1.Annotations.AddText(rs(showfield), lyr.Selection(1).CenterX, lyr.Selection(1).CenterY, 3).Graphic.style = oStyle
(白字黑底)
作者Blog:http://blog.csdn.net/ppp80/
原文转自:http://www.ltesting.net