如何在C#WinForms标签上写二次方程? [英] How to write quadratic equation on Label in C# WinForms?

查看:339
本文介绍了如何在C#WinForms标签上写二次方程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在制作统计软件。无论如何我们需要放置公式如 ax2 + bx + c 如何使 ax2 表示x方形2.我想在x的上侧显示2。与πc相同我想在后缀显示c。

We are making statistical software. Everywhere we need to put formula such as ax2+bx+c How to make ax2 means x square 2. I want to display 2 on upper side of x. Same with πc I want to display c at suffix.

推荐答案

你有一个固定的公式列表,用户可以选择,编辑?然后为每个公式生成一个图像,将它们存储在您的应用程序中,并将它们显示在 PictureBox 中。

Do you have a fixed list of formulas that users can choose but cannot edit? Then generate an image for each formula, store them in your application, and display them in a PictureBox.

您希望用户能够输入任意公式并以交互方式呈现,您必须实现一个可视的公式编辑器控制。这些控件采用MathML或TeX等标记,并将它们作为图形呈现。几个在我提供的链接中描述,但我不知道任何这样的.Net控件的WinForms。

If you expect users to be able to type in arbitrary formulas and render them interactively, you will have to implement a visual formula editor control. These controls take markup such as MathML or TeX and render them as graphics. Several are described in the link I provided, but I do not know of any such .Net controls for WinForms.

这篇关于如何在C#WinForms标签上写二次方程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆