protected override void InternalCopyGraphItems(HostLayer from, Gdi.GraphCopyOptions options) { bool bGraphItems = options.HasFlag(Gdi.GraphCopyOptions.CopyLayerGraphItems); bool bChildLayers = options.HasFlag(Gdi.GraphCopyOptions.CopyChildLayers); bool bLegends = options.HasFlag(Gdi.GraphCopyOptions.CopyLayerLegends); var criterium = new Func<IGraphicBase, bool>(x => { if (x is Gdi.HostLayer) return bChildLayers; if (x is LegendText) return bLegends; return bGraphItems; }); InternalCopyGraphItems(from, options, criterium); }