public override bool CanCopy(Shape formatShape) { SoftEdgeFormat softEdge = formatShape.SoftEdge; // do not check softEdge.Type, it can sometimes == msoSoftEdgeTypeNone when there is a soft edge return(softEdge.Radius > 0); }
private static bool Sync(Shape formatShape, Shape newShape) { try { SoftEdgeFormat dest = newShape.SoftEdge; SoftEdgeFormat source = formatShape.SoftEdge; // skip setting type, SoftEdgeFormat.Type is not reliable dest.Radius = source.Radius; } catch (Exception) { return(false); } return(true); }
private static bool Sync(Shape formatShape, Shape newShape) { try { SoftEdgeFormat dest = newShape.SoftEdge; SoftEdgeFormat source = formatShape.SoftEdge; // skip setting type, SoftEdgeFormat.Type is not reliable dest.Radius = source.Radius; return(true); } catch (Exception e) { Logger.LogException(e, "Sync SoftEdgeEffectFormat"); return(false); } }