/// <summary> /// Applies a set of formats from a source shape to shapes selected by the user /// </summary> /// <param name="nodes"></param> /// <param name="formatShape">source shape</param> public void ApplyFormats(FormatTreeNode[] nodes, Shape formatShape) { ShapeRange selectedShapes = GetSelectedShapesForFormatting(); if (selectedShapes == null) { MessageBox.Show(SyncLabText.ErrorPasteSelectionInvalid, SyncLabText.ErrorDialogTitle); } else { Format[] formats = GetFormatsToApply(nodes); ShapeUtil.ApplyFormats(formats, formatShape, selectedShapes); } }