public Inline InsertInspectedResult(Inline position, object obj) { LoadInspector(obj); object result = _rubyEngine.InvokeMember(obj, "as_xaml"); if (result is MutableString) { return(InsertColorizedCode(position, result.ToString())); } else { throw new NotImplementedError("do not have mechanism to insert UIElement in middle of flow document yet"); } }