kinkikid2002
路人甲
路人甲
  • 注册日期2006-05-08
  • 发帖数9
  • QQ
  • 铜币147枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1244回复:0

vb+arcgis开发,如何才能PageLayoutControl上添加文本文字?

楼主#
更多 发布于:2006-06-30 09:20
<P>例子里面:</P><PRE>Dim pDoc As IMxDocument, pPageLayout As IPageLayout
Dim pContainer As IGraphicsContainer, pElement As IElement
Dim pTextElement As ITextElement
Set pDoc = ThisDocument(这个是在vba里面的 ,vb这行认不出来,怎么改写?)
Set pPageLayout = pDoc.PageLayout
Set pContainer = pPageLayout
pContainer.Reset
Set pElement = pContainer.Next
While Not pElement Is Nothing
  If TypeOf pElement Is ITextElement Then
    Set pTextElement = pElement
    Debug.Print "The text for this element is:  " ; pTextElement.Text
  End If
  Set pElement = pContainer.Next
Wend</PRE><PRE> </PRE><PRE>或者给我另外的代码  谢谢</PRE>
喜欢0 评分0
游客

返回顶部