您好,我这边测试了下,在生成和渲染大概花了2秒左右,不知道是否在您的预期范围内
具体代码请参考
- TimeSpan ts1 = new TimeSpan(DateTime.Now.Ticks);
- C1Editor c1Editor1 = new C1Editor();
- //
- c1Editor1.Location = new System.Drawing.Point(529, 163);
- c1Editor1.MinimumSize = new System.Drawing.Size(200, 185);
- c1Editor1.Name = "c1Editor1";
- c1Editor1.Size = new System.Drawing.Size(204, 185);
- c1Editor1.TabIndex = 0;
- this.Controls.Add(c1Editor1);
- TimeSpan ts2 = new TimeSpan(DateTime.Now.Ticks);
- TimeSpan ts = ts1.Subtract(ts2).Duration();
- MessageBox.Show(ts.TotalMilliseconds.ToString() + "ms");
复制代码
|