SourceGrid のサンプルコードを読んでいたら、
Designer.cs じゃなく Form.cs 内に
以下のような記述部分 (region) がありました。
コード ブロック
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.grid1 = new SourceGrid.Grid();
気になったのは "Designer generated code" と書かれていることです。
普通、Form デザイナーで作業をしていると、デザイナーで行った処理は
Designer.cs に出力されるのですが、上のコードは Form.cs に書かれています。
こんなことって普通にデザイナーを扱っていてもできるのでしょうか?
何か特別な設定をすると、こんな風に Designer.cs に書かれそうな部分が、
Designer.cs に書き出されず、代わりに Form.cs に書き出されるようになるん
でしょうか?
- 確認画像