DrawToolsRedux/TextDialog.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Drawing;
using System.Windows.Forms;

namespace DrawTools
{
	public partial class TextDialog : Form
	{
		public TextDialog()
		{
			InitializeComponent();
		}

		private string _text;

		public string TheText
		{
			get { return _text; }
			set { _text = value; }
		}
        // 下载于www.51aspx.com
		private Font _font;

		public Font TheFont
		{
			get { return _font; }
			set { _font = value; }
		}

		private Color _color;

		public Color TheColor
		{
			get { return _color; }
			set { _color = value; }
		}

		private void TextDialog_Load(object sender, EventArgs e)
		{
			_color = Color.Black;
			_font = txtTheText.Font;
			_text = "";
		}

		private void btnFont_Click(object sender, EventArgs e)
		{
			dlgFont.AllowSimulations = true;
			dlgFont.AllowVectorFonts = true;
			dlgFont.AllowVerticalFonts = true;
			dlgFont.MaxSize = 200;
			dlgFont.MinSize = 4;
			dlgFont.ShowApply = false;
			dlgFont.ShowColor = true;
			dlgFont.ShowEffects = true;
			if (dlgFont.ShowDialog() ==
			    DialogResult.OK)
			{
				_font = dlgFont.Font;
				_color = dlgFont.Color;
				txtTheText.Font = _font;
后面还有 10 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。