/// <inheritdoc />
		public IInlineUIElement CreateInlineUIElement(ITextAnchor position, UIElement element)
		{
			if (position == null)
				throw new ArgumentNullException("position");
			if (element == null)
				throw new ArgumentNullException("element");
			InlineUIElementGenerator inline = new InlineUIElementGenerator(textView, element, position);
			this.textView.ElementGenerators.Add(inline);
			return inline;
		}
        /// <inheritdoc />
        public IInlineUIElement CreateInlineUIElement(ITextAnchor position, UIElement element)
        {
            if (position == null)
            {
                throw new ArgumentNullException("position");
            }
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }
            InlineUIElementGenerator inline = new InlineUIElementGenerator(textView, element, position);

            this.textView.ElementGenerators.Add(inline);
            return(inline);
        }