'宣言 Public ReadOnly Property Type As LayoutChangeType
public LayoutChangeType Type {get;}
プロパティ値
変更の種類を表すLayoutChangeType列挙値。
'宣言 Public ReadOnly Property Type As LayoutChangeType
public LayoutChangeType Type {get;}
変更の種類を表すLayoutChangeType列挙値。
/// <概要> /// 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