本文整理汇总了C#中IFeatureSet.EditCellValue方法的典型用法代码示例。如果您正苦于以下问题:C# IFeatureSet.EditCellValue方法的具体用法?C# IFeatureSet.EditCellValue怎么用?C# IFeatureSet.EditCellValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFeatureSet
的用法示例。
在下文中一共展示了IFeatureSet.EditCellValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: buildMergeDownstreamUpStream
private static void buildMergeDownstreamUpStream(IFeatureSet newshed, int IDFieldNum, int LinksFieldNum, int DSFieldNum, int USFieldNum1, int USFieldNum2)
{
for (int i = 0; i <= newshed.NumRows() - 1; i++)
{
string currDSField = newshed.get_CellValue(DSFieldNum, i).ToString();
if (currDSField != "-1")
{
for (int j = 0; j <= newshed.NumRows() - 1; j++)
{
string links = newshed.get_CellValue(LinksFieldNum, j).ToString();
string[] split = links.Split(',');
for (int k = 0; k <= split.Length - 1; k++)
{
if (split[k].Trim() == currDSField)
{
newshed.EditCellValue(DSFieldNum, i, newshed.get_CellValue(IDFieldNum, j));
string upstream1 = newshed.get_CellValue(USFieldNum1, j).ToString();
if (upstream1 == "-1")
{
newshed.EditCellValue(USFieldNum1, j, newshed.get_CellValue(IDFieldNum, i));
}
else
{
newshed.EditCellValue(USFieldNum2, j, newshed.get_CellValue(IDFieldNum, i));
}
break;
}
}
}
}
}
}