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


C# ISet.Next方法代码示例

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


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

示例1: SetObjects

 public void SetObjects(ISet Objects)
 {
     int count = Objects.Count;
     Objects.Reset();
     for (int i = 0; i < count; i++)
     {
         object obj = Objects.Next();
         targetTrack = (IAGAnimationTrack)obj;
         if (targetTrack != null)
         {                    
             break;
         }
     }
     propPage.Init(targetTrack);
 }
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:15,代码来源:MapGraphicTrackPropPage.cs

示例2: Applies

 public bool Applies(ISet Objects)
 {
     object obj;
     IAGAnimationTrack track;
     int count = Objects.Count;
     Objects.Reset();
     bool appl = false;
     for (int i = 0; i < count; i++)
     {
         obj = Objects.Next();
         track = (IAGAnimationTrack)obj;
         if (track != null)
         {
             if (track.AnimationType.Name == "Map Graphic")
             {
                 appl = true;
                 break;
             }
         }
     }
     return appl;        
 }
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:22,代码来源:MapGraphicTrackPropPage.cs

示例3:

		/// <summary>
		/// Supplies the page with the object(s) to be edited.
		/// </summary>
		/// <param name="objects">The object(s) this page applies to.</param>
		void IComPropertyPage.SetObjects(ISet objects)
		{
			if (objects == null || objects.Count != 1)
				return;

			// Store the provided object class in a member variable.
			objects.Reset();
			object providedObject = objects.Next();
			objectClass = providedObject as IObjectClass;
			if (objectClass != null)
			{
				// Get the object class' extension.
				timestampClassExtension = objectClass.Extension as TimestampClassExtension;
			}
		}
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:19,代码来源:TimestampPropertyPage.cs

示例4: CheckSeeContainment

        private void CheckSeeContainment(ref ISet primaryParcels, ISDUTLib.tm.Transaction tx)
        {
            IPolygon theSee = tx.get_SEE();
            IRelationalOperator theRelOp = (IRelationalOperator)theSee;

            primaryParcels.Reset();
            int remCount = 0;

            IFeature thePP = (IFeature)primaryParcels.Next();
            while (thePP != null)
            {
                if (thePP.Shape == null || thePP.Shape.IsEmpty)
                {
                    primaryParcels.Remove(thePP);
                    remCount++;
                }
                else
                {
                    theSee.Project(thePP.Shape.SpatialReference);
                    if (theRelOp.Contains(thePP.Shape) == false)
                    {
                        primaryParcels.Remove(thePP);
                        remCount++;
                    }
                }
                thePP = (IFeature)primaryParcels.Next();
            }

            if (remCount == 1)
            {
                MessageBox.Show(remCount + " primary parcel was removed for reporting because it was not entirely within the SEE.");
            }
            else if (remCount > 1)
            {
                MessageBox.Show(remCount + " primary parcels were removed for reporting because they were not entirely within the SEE.");
            }
        }
开发者ID:EAWCS1,项目名称:SUITT,代码行数:37,代码来源:PrimarySubdivCmd.cs


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