CogoPointCollection クラスは、1 回の操作で複数のポイントのプロパティを変更する複数のメソッドを提供します。ほとんどの Set<Property>() メソッドには、次の 3 つのバージョンがあります。
ポイントのリストを、ポイントのサブコレクションにしたり、または CivilDocument.CogoPoints コレクションを渡して、ドキュメント内のすべてのポイントを処理することができます。
次の例は、一括編集メソッドを使用して、図面内のすべてのポイントに対して Elevation、RawDescription、DescriptionFormat プロパティを設定ます。
// Change a couple of properties using bulk editing methods cogoPoints.SetElevationByOffset(cogoPoints, 3.00); cogoPoints.SetRawDescription(cogoPoints, "NEW_DESC"); // Sets Full Description = Raw Description: cogoPoints.SetDescriptionFormat(cogoPoints, "$*");