<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>08-如何对cell元素进行嵌套遍历</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21069/08-cell</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>08-如何对cell元素进行嵌套遍历</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21069/08-cell</link><pubDate>Wed, 29 Apr 2015 09:08:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b17aa865-6363-4271-bb7c-1346e4f1bde5</guid><dc:creator>lijun.ma</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21069/08-cell#comments</comments><description>Current Revision posted to 技术资料库 by lijun.ma on 4/29/2015 9:08:20 AM&lt;br /&gt;
&lt;p&gt;可以用ChildElementEnumerator迭代器进行，示例代码如下：&lt;/p&gt;
&lt;pre class="brush: applescript; fontsize: 100; first-line: 1; "&gt;Bentley.DgnPlatformNET.Elements.CellHeaderElement cellEle;
Bentley.DgnPlatformNET.Elements.ChildElementEnumerator childEnumer = new Bentley.DgnPlatformNET.Elements.ChildElementEnumerator(cellEle);

while (childEnumer.MoveNext())
{
    if (childEnumer.Current.ElementType == Bentley.DgnPlatformNET.MSElementType.Text)
    {
        Bentley.DgnPlatformNET.Elements.TagElement tagEleCell = (Bentley.DgnPlatformNET.Elements.TagElement)childEnumer.Current;
        //to do...
    }
}&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: imodel cell&lt;/div&gt;
</description></item></channel></rss>