コード例 #1
0
        public static PlotModel UnbalancedClippingPop()
        {
            var model      = new PlotModel();
            var annotation = new RenderingCapabilities.DelegateAnnotation(rc =>
            {
                rc.PopClip();
            });

            model.Annotations.Add(annotation);
            return(model);
        }
コード例 #2
0
        public static PlotModel ExceptionClipping()
        {
            var model      = new PlotModel();
            var annotation = new RenderingCapabilities.DelegateAnnotation(rc =>
            {
                rc.PushClip(new OxyRect(50, 50, 50, 50));
                throw new Exception("This Exception should be completely visible and not clipped by the previously pushed clipping rectangle.");
            });

            model.Annotations.Add(annotation);
            return(model);
        }