コード例 #1
0
        public SvgPictureBoxWindow(SvgPictureBox control, ISvgRenderer renderer)
            : base(control.Width, control.Height, renderer)
        {
            if (control == null)
            {
                throw new NullReferenceException("control cannot be null");
            }

            _svgPictureBox = control;
        }
コード例 #2
0
        public SvgPictureBoxWindow(SvgPictureBox control, ISvgRenderer renderer)
            : base(control.Width, control.Height, renderer)
        {
            if (control == null)
            {
                throw new NullReferenceException("control cannot be null");
            }

            _svgPictureBox = control;
        }
コード例 #3
0
        protected override void OnPaintAdornments(PaintEventArgs pe)
        {
            SvgPictureBox component = (SvgPictureBox)base.Component;

            if (component.BorderStyle == BorderStyle.None)
            {
                this.DrawBorder(pe.Graphics);
            }
            base.OnPaintAdornments(pe);
        }
コード例 #4
0
        private SvgPictureBoxWindow(SvgPictureBox control, SvgWindow parentWindow, long innerWidth, long innerHeight)
            : base(parentWindow, innerWidth, innerHeight)
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control), "control cannot be null");
            }

            _preferUserSize = true;
            _svgPictureBox  = control;
        }
コード例 #5
0
        public SvgPictureBoxWindow(SvgPictureBox control, ISvgRenderer renderer)
            : base(control.Width, control.Height, renderer)
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control), "control cannot be null");
            }

            _preferUserSize = true;
            _svgPictureBox  = control;
        }
コード例 #6
0
        public SvgPictureBoxWindow(SvgPictureBox control, ISvgRenderer renderer)
            : base(control.Width, control.Height, renderer)
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control), "control cannot be null");
            }
            if (this.BaseUrls == null)
            {
                this.BaseUrls = new HashSet <string>(StringComparer.OrdinalIgnoreCase);
            }

            _preferUserSize = true;
            _svgPictureBox  = control;
        }