You are on page 1of 2

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
Font fuentePr;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
fuentePr = EditordeTexto.Font;
}
private void nuevoToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void ArchivoSalir_Click(object sender, EventArgs e)
{
Close();
}
private void EdicionCortar_Click(object sender, EventArgs e)
{
EditordeTexto.Cut();
}
private void EdicionCopiar_Click(object sender, EventArgs e)
{
EditordeTexto.Copy();
}
private void EdicionPegar_Click(object sender, EventArgs e)
{
EditordeTexto.Paste();
}
private void btCortar_Click(object sender, EventArgs e)
{
EditordeTexto.Cut();
}
private void btCopiar_Click(object sender, EventArgs e)
{
EditordeTexto.Copy();
}
private void btPegar_Click(object sender, EventArgs e)
{
EditordeTexto.Paste();
}
private void OpFuArial_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font("Arial", f.Size, f.Style);
}
private void OpFuCouriernew_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font("Courier New", f.Size, f.Style);
}
private void OpFuPredeterminada_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(fuentePr.SystemFontName, f.Size, f.Sty
le);
}
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(f.SystemFontName, 12.0F , f.Style);
}
private void toolStripMenuItem3_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(f.SystemFontName, 14.0F, f.Style);
}
private void toolStripMenuItem4_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(f.SystemFontName, 16.0F, f.Style);
}
private void toolStripMenuItem5_Click(object sender, EventArgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(f.SystemFontName, 24.0F, f.Style);
}
private void predeterminadoToolStripMenuItem_Click(object sender, EventA
rgs e)
{
Font f = EditordeTexto.Font;
EditordeTexto.Font = new Font(f.SystemFontName, fuentePr.Size, f.Sty
le);
}
}
}