private void AddCellProps( List <ILayout> results, IArea area, OpenXmlElement props) { if (props == null) { return; } foreach (var child in props) { if (CellLayoutPropsMappings.TryGetValue(child.GetType(), out Type t)) { var layoutParams = new LayoutParams(); layoutParams.elem = child; layoutParams.type = t; layoutParams.area = area; results.Add(layoutParams.Build()); } } }