using GrapeCity.Win.MultiRow;
private double baseWidth;
private void Form1_Load(object sender, EventArgs e)
{
gcMultiRow1.Template = Template.CreateGridTemplate(3);
gcMultiRow1.RowCount = 5;
// Form1にドッキングします
gcMultiRow1.Dock = DockStyle.Fill;
// セクションをGcMultiRowの幅に自動拡張します
gcMultiRow1.AllowAutoExtend = true;
// 変数の初期化
baseWidth = this.Width;
}
private void Form1_Resize(object sender, EventArgs e)
{
double zoomValue = this.Width / baseWidth;
if(zoomValue < 0.1f)
{
zoomValue = 0.1f;
}
if(zoomValue > 4.0f)
{
zoomValue = 4.0F;
}
gcMultiRow1.ZoomFactor = (float)zoomValue;
}