object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args) { MathMLElement c = (MathMLElement)args; MathMLElement n = null; switch (selection) { case SelectionType.Prev: { if ((n = PreviousMathSibling(c)) != null) { return(n); } else { selection = SelectionType.Start; return(c.Accept(this, null)); } } case SelectionType.Next: { if ((n = NextMathSibling(c)) != null) { selection = SelectionType.Start; index = 0; return(n.Accept(this, null)); } else { selection = SelectionType.End; return(c.Accept(this, null)); } } case SelectionType.Start: { n = e.FirstChild as MathMLElement; return(n != null?n.Accept(this, null) : null); } case SelectionType.End: { n = e.LastChild as MathMLElement; return(n != null?n.Accept(this, null) : null); } default: { return(null); } } }
object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args) { return ((Area)formatter.Visit(e, args)).BoundingBox; }
public void SetMathElement(MathMLMathElement value) { mathElement = value; }
object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args) { return(((Area)formatter.Visit(e, args)).BoundingBox); }
public void SetMathElement(MathMLMathElement value) { mathElement = value; }