'宣言
Public Class LayoutChangedArgs Inherits System.EventArgs
public class LayoutChangedArgs : System.EventArgs
'宣言
Public Class LayoutChangedArgs Inherits System.EventArgs
public class LayoutChangedArgs : System.EventArgs
// ardMain_LayoutChanged - レイアウト内のコントロール/セクションが追加/削除/移動された場合に実行される private void ardMain_LayoutChanged(object sender, GrapeCity.ActiveReports.Design.LayoutChangedArgs e) { if(e.Type == GrapeCity.ActiveReports.Design.LayoutChangeType.ControlAdd) //コントロールの追加 { this._controlAdded = true; ResetToolbox(); tbToolbox.Buttons[0].Pushed = true; } else { this._controlAdded = false; } if(e.Type == GrapeCity.ActiveReports.Design.LayoutChangeType.ControlDelete) //コントロールの削除 { this._controlDeleted = true; } else { this._controlDeleted = false; } if(e.Type == GrapeCity.ActiveReports.Design.LayoutChangeType.SectionAdd) //セクションの追加 { this._sectionAdded = true; } else { this._sectionAdded = false; } if(e.Type == GrapeCity.ActiveReports.Design.LayoutChangeType.SectionDelete) //セクションの削除 { this._sectionDeleted = true; } else { this._sectionDeleted = false; } }
'ardMain_LayoutChanged - レイアウト内のコントロール/セクションが追加/削除/移動された場合に実行される Private Sub ardMain_LayoutChanged(ByVal sender As Object, ByVal e As GrapeCity.ActiveReports.Design.LayoutChangedArgs) Handles ardMain.LayoutChanged If e.Type = GrapeCity.ActiveReports.Design.LayoutChangeType.ControlAdd Then 'コントロールの追加 Me._controlAdded = True ResetToolbox() tbToolbox.Buttons(0).Pushed = True Else Me._controlAdded = False End If If e.Type = GrapeCity.ActiveReports.Design.LayoutChangeType.ControlDelete Then 'コントロールの削除 Me._controlDeleted = True Else Me._controlDeleted = False End If If e.Type = GrapeCity.ActiveReports.Design.LayoutChangeType.SectionAdd Then 'セクションの追加 Me._sectionAdded = True Else Me._sectionAdded = False End If If e.Type = GrapeCity.ActiveReports.Design.LayoutChangeType.SectionDelete Then 'セクションの削除 Me._sectionDeleted = True Else Me._sectionDeleted = False End If End Sub 'ardMain_LayoutChanged
System.Object
System.EventArgs
GrapeCity.ActiveReports.Design.LayoutChangedArgs