PowerTools ActiveReports for .NET 9.0J
Insert メソッド (ControlCollection)
使用例 

valueを挿入するコレクション内の位置。0から始まるインデックス番号。
挿入するARControl
コレクション 内の指定したインデックスの位置にARControlオブジェクトを挿入します。
構文
'宣言
 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal control As ARControl _
) 
public void Insert( 
   int index,
   ARControl control
)

パラメータ

index
valueを挿入するコレクション内の位置。0から始まるインデックス番号。
control
挿入するARControl
使用例
private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
{
    GrapeCity.ActiveReports.SectionReportModel.TextBox t = new GrapeCity.ActiveReports.SectionReportModel.TextBox();
    GrapeCity.ActiveReports.SectionReportModel.TextBox t2 = new GrapeCity.ActiveReports.SectionReportModel.TextBox();
    t.Text="Insert text here.";
    t2.Text="Insert some more text here.";
    t2.Left=1;
    this.Sections[0].Controls.Add (t);
    this.Sections[0].Controls.Insert(1,t2); 
}
Private Sub SectionReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Dim t As New GrapeCity.ActiveReports.SectionReportModel.TextBox
    Dim t2 As New GrapeCity.ActiveReports.SectionReportModel.TextBox
    t.Text = "Insert text here."
    t2.Text = "Insert some more text here."
    t2.Left = 1
    Me.Sections(0).Controls.Add(t)
    Me.Sections(0).Controls.Insert(0, t2)
End Sub
参照

関連項目

ControlCollection クラス
ControlCollection メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.