Esempio n. 1
0
        /// <summary>
        /// Writes the specified <see cref="Atom"/> to the <see cref="renderer"/>.
        /// </summary>
        /// <param name="renderer">The renderer.</param>
        /// <param name="objectToRender">The WpfMath atom to render.</param>
        /// <returns><see cref="WriteResult.Completed"/> if the writing was completed. If writing is still not completed (as in deferred writing), the return value is <see cref="WriteResult.CompletionDeferred"/>.</returns>
        public virtual WriteResult Write(WpfMathRendererBase renderer, Atom obj)
        {
            var rendererHere = (TRenderer)renderer;
            var typedObj     = (TObject)obj;



            return(Write(rendererHere, typedObj));
        }
Esempio n. 2
0
 public virtual bool Accept(WpfMathRendererBase renderer, Atom obj)
 {
     return(obj is TObject);
 }