using System;
using ;
using ponentModel;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using FlexCell;
namespace Demo
{
public partial class UserControl1 : UserControl
{
//点击按钮之后改变的背景色
Color c1 = (194, 224, 255);
public UserControl1()
{
ponent();
}
private void UserControl1_Load(object sender, EventArgs e)
{
//初始化字体和文字大小默认值
FontFamily[] fonts = ;
for (int i = 0; i < ; i++)
{
(fonts[i].Name);
}
= "宋体";
= "10";
}
/// <summary>
/// 新建按钮点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripButton1_Click(object sender, EventArgs e)
{
();
= true;
=20;
=10;
}
/// <summary>
/// 初始化Grid
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void grid1_Load(object sender, EventArgs e)
{
();
= true;
= 25;
//(1, 1, -1, -1).Font = new Font("宋体", 10);
}
/// <summary>
/// 保存按钮事件
/// </summary>
/// <param name="sender"></param>
/// <
Grid的使用-表格编辑器 来自淘豆网www.taodocs.com转载请标明出处.