Rinler
路人甲
路人甲
  • 注册日期2004-09-20
  • 发帖数95
  • QQ
  • 铜币490枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2271回复:3

使用什么接口和函数可以在程序中引用到style文件中的符号?

楼主#
更多 发布于:2006-03-03 09:08
<P>使用什么接口和函数可以在程序中引用到style文件中的符号?</P>
<P>谢谢!</P>
喜欢0 评分0
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2006-03-03 11:48
<P>看看帮助就晓得啦</P>
<P>esriDisplay IStyleGallery Example</P>
<P>'Add a red to the colors in the users default style<BR>Dim pStyleGlry As IStyleGallery<BR>Set pStyleGlry = New StyleGallery<BR>Dim pStyleItem As IStyleGalleryItem<BR>Dim pRgbColor As IRgbColor<BR>Set pRgbColor = New RgbColor<BR>With pRgbColor<BR>  .Red = 255<BR>  .Green = 0<BR>  .Blue = 0<BR>End With</P>
<P>Set pStyleItem = New StyleGalleryItem<BR>pStyleItem.Name = "Red 1"<BR>pStyleItem.Category = "Default"<BR>pStyleItem.Item = pRgbColor<BR>pStyleGlry.AddItem pStyleItem</P>
<P>'Find the first marker in the Civic.style<BR>Dim pStylePath As String<BR>'Add the Civic.style to the IStyleGalleryStorage<BR>Dim pStylStor As IStyleGalleryStorage<BR>Set pStylStor = pStyleGlry<BR>pStylePath = pStylStor.DefaultStylePath ; "Civic.style"<BR>pStylStor.AddFile pStylePath</P>
<P>'Locate the first marker<BR>Dim pItems As IEnumStyleGalleryItem<BR>Set pItems = pStyleGlry.Items("Marker Symbols", pStylePath, "Default")<BR>pItems.Reset<BR>Dim pItem As IStyleGalleryItem<BR>Set pItem = pItems.Next<BR>MsgBox pItem.Name</P>
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
Rinler
路人甲
路人甲
  • 注册日期2004-09-20
  • 发帖数95
  • QQ
  • 铜币490枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2006-03-03 14:28
<P>谢谢!</P>
举报 回复(0) 喜欢(0)     评分
wanilyer
路人甲
路人甲
  • 注册日期2004-12-29
  • 发帖数43
  • QQ
  • 铜币60枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2006-03-25 08:57
<P>New StyleGallery<BR> 这个类不能在Engine中使用</P>
<P>只有安装了桌面软件才能使用</P>
<P>有没有能在Engine中打开的代码</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部