技术问题vc

0 views
Skip to first unread message

zby...@163.com

unread,
Feb 20, 2009, 1:21:42 AM2/20/09
to Visual Graph技术论坛
<rect name="模型名称2" description="Being-BBB" origin="164,354"
bounds="64,104,184,216" link="line21,center" pattern="1">
<text origin="124,160" bounds="64,104,184,216" locked="true"
fontname="Arial" fontsize="12" text="模型名称2"/>
</rect>


试问如何在程序中获取 rect 模型名称2 里面的这个 text?
获取 rect 模型名称2 :m_vgctrl.GetVg().GetSheets(0).GetUnits(0) ;
应该是unit中有个什么属性是可以获取到这个 text 的,一时找不到。望赐教。
感激不尽。

zgj67

unread,
Feb 20, 2009, 5:06:42 AM2/20/09
to visual...@googlegroups.com
用Execute函数
例如:
rect1.Execute( "text1.Text='hello'" )
取值:
s = Rect1.Execute( "return Text1.Text" )
Reply all
Reply to author
Forward
0 new messages