SpreadControlParts.cs セルのコントロールの基底クラスです。
using System;
using System.Windows.Forms;
using System.Drawing;
namespace SpreadControl
{
/// <summary>
/// SpreadControlPartsEnum の概要の説明です。
/// </summary>
public enum SpreadControlPartsEnum { TextBox = 0 } ;
/// <summary>
/// SpreadControlParts の概要の説明です。
/// </summary>
abstract public class SpreadControlParts
{
public static SpreadControlParts GetInstance( SpreadControlPartsEnum parts )
{
SpreadControlParts controlparts = null ;
switch ( parts )
{
case SpreadControlPartsEnum.TextBox:
controlparts = (SpreadControlParts)SpreadTextBox.GetInstance() ;
break ;
}
return controlparts ;
}
abstract public Control Control { get ; }
abstract public object InitialValue() ;
abstract public void EnterControl( Point point, Size size, object control ) ;
abstract public object LeaveControl() ;
abstract public Size GetPreferredSize( Font font ) ;
}
}