Hi,
I'm using the following code to loop through all shape in a document (using 2 nested foreach loops) and locate a shape with a specific ID. Isn't there a easier and more efficient method? A Find method?
NNodeList nodes = document.Descendants(NFilters.TypeNShape, -1);
foreach (var shape in nodes)
{
foreach (MeasurementPoint _measurementPoint in this._measurementPointList)
{
NShape shp = (NShape)shape;
if (shp.Id == _measurementPoint.ID)
{
//more code here...