Beispiel #1
0
        public static T AddEffect <T>(this T layer, CIMGeometricEffect effect) where T : CIMSymbolLayer
        {
            if (layer == null)
            {
                throw new ArgumentNullException(nameof(layer));
            }

            layer.Effects = AddOne(layer.Effects, effect);

            return(layer);
        }
Beispiel #2
0
        public static T AddGlobalEffect <T>(this T symbol, CIMGeometricEffect effect) where T : CIMMultiLayerSymbol
        {
            if (symbol == null)
            {
                throw new ArgumentNullException(nameof(symbol));
            }

            symbol.Effects = AddOne(symbol.Effects, effect);

            return(symbol);
        }