public SvgPictureBoxWindow(SvgPictureBox control, ISvgRenderer renderer) : base(control.Width, control.Height, renderer) { if (control == null) { throw new NullReferenceException("control cannot be null"); } _svgPictureBox = control; }
protected override void OnPaintAdornments(PaintEventArgs pe) { SvgPictureBox component = (SvgPictureBox)base.Component; if (component.BorderStyle == BorderStyle.None) { this.DrawBorder(pe.Graphics); } base.OnPaintAdornments(pe); }
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; }
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; }
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; }