当前位置: 首页>>代码示例>>C#>>正文


C# Tag.visit方法代码示例

本文整理汇总了C#中Tag.visit方法的典型用法代码示例。如果您正苦于以下问题:C# Tag.visit方法的具体用法?C# Tag.visit怎么用?C# Tag.visit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tag的用法示例。


在下文中一共展示了Tag.visit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: visitAfter

		private void  visitAfter(Tag visitAfter)
		{
			if (visitAfter != null)
			{
				//UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
				assert !done.contains(visitAfter);
				visitAfter.visit(handler);
				done.Add(visitAfter);
			}
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:10,代码来源:MovieEncoder.cs

示例2: define

		// changed from private to public to support Flash Authoring - jkamerer 2007.07.30
		public virtual void  define(Tag tag)
		{
			if (!done.Contains(tag))
			{
				//UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
				for (System.Collections.IEnumerator i = tag.References; i.MoveNext(); )
				{
					//UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
					Tag ref_Renamed = (Tag) i.Current;
					define(ref_Renamed);
				}
				// ImportRecords are pre-visited via their parent ImportAssets tag.
				if (!(tag is ImportRecord))
				{
					tag.visit(handler);
					
					// FIXME: we really need a general handler for references that should be handled after the
					// parent tag is visited.  Or maybe all references can be changed so that they are handled
					// after the main tag is visited?
					
					Tag visitAfter = null;
					if (tag is DefineSprite)
					{
						visitAfter = ((DefineSprite) tag).scalingGrid;
					}
					else if (tag is DefineButton)
					{
						visitAfter = ((DefineButton) tag).scalingGrid;
					}
					else if (tag is DefineShape)
					{
						visitAfter = ((DefineShape) tag).scalingGrid;
					}
					else if (tag is DefineFont3)
					{
						visitAfter = ((DefineFont3) tag).zones;
					}
					else if (tag is DefineEditText)
					{
						visitAfter = ((DefineEditText) tag).csmTextSettings;
					}
					else if (tag is DefineText)
					{
						visitAfter = ((DefineText) tag).csmTextSettings;
					}
					
					this.visitAfter(visitAfter);
					
					visitAfter = null;
					if (tag is DefineFont)
					{
						visitAfter = ((DefineFont) tag).license;
					}
					
					this.visitAfter(visitAfter);
				}
				done.Add(tag);
			}
		}
开发者ID:heon21st,项目名称:flashdevelop,代码行数:60,代码来源:MovieEncoder.cs


注:本文中的Tag.visit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。