Exemple #1
0
        public WpfTextContext(SvgTextBaseElement textElement, WpfTextRendering textRendering)
        {
            if (textRendering == null)
            {
                throw new ArgumentNullException(nameof(textRendering),
                                                "The text rendering object is required, and cannot be null (or Nothing).");
            }
            _textRendering = textRendering;

            this.SetElement(textElement);
        }
        protected WpfTextRenderer(SvgTextElement textElement, WpfTextRendering textRendering)
        {
            if (textElement == null)
            {
                throw new ArgumentNullException(nameof(textElement),
                                                "The SVG text element is required, and cannot be null (or Nothing).");
            }
            if (textRendering == null)
            {
                throw new ArgumentNullException(nameof(textRendering),
                                                "The text rendering object is required, and cannot be null (or Nothing).");
            }

            _textElement   = textElement;
            _textRendering = textRendering;
        }
Exemple #3
0
        public WpfTextContext(SvgTextElement textElement, WpfTextRendering textRendering)
        {
            if (textElement == null)
            {
                throw new ArgumentNullException(nameof(textElement),
                                                "The SVG text element is required, and cannot be null (or Nothing).");
            }
            if (textRendering == null)
            {
                throw new ArgumentNullException(nameof(textRendering),
                                                "The text rendering object is required, and cannot be null (or Nothing).");
            }

            _textElement   = textElement;
            _textRendering = textRendering;

            this.Initialize();
        }
 public WpfPathTextRenderer(SvgTextElement textElement, WpfTextRendering textRendering)
     : base(textElement, textRendering)
 {
 }
 public WpfVertTextRenderer(SvgTextBaseElement textElement, WpfTextRendering textRendering)
     : base(textElement, textRendering)
 {
 }