本文整理汇总了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);
}
示例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;
}
示例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;
}
}
示例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.");
}
}