ActiveReports 8
LayoutChangingArgs Class
Members  Example  See Also 
GrapeCity.ActiveReports.Design.Win.v8 Assembly > GrapeCity.ActiveReports.Design Namespace : LayoutChangingArgs Class

Glossary Item Box

The LayoutChangingArgs class provides data required for the LayoutChanging event.

Object Model

LayoutChangingArgs Class

Syntax

Visual Basic (Declaration) 
Public Class LayoutChangingArgs 
   Inherits System.EventArgs
C# 
public class LayoutChangingArgs : System.EventArgs 

Example

Visual BasicCopy Code
Private Sub ardMain_LayoutChanging(ByVal sender As Object, ByVal e As Design.LayoutChangingArgs) Handles ardMain.LayoutChanging
    If e.Type = Design.LayoutChangeType.SectionDelete Then
        Dim Result As DialogResult
        Result = MessageBox.Show("Are you sure you want to delete this section?", "Delete?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)
        If Result = DialogResult.Cancel Then
            e.AllowChange = False
        Else
            e.AllowChange = True
        End If
    End If
End Sub
C#Copy Code
private void ardMain_LayoutChanging(object sender, GrapeCity.ActiveReports.Design.LayoutChangingArgs e)
{
    if (e.Type == Design.LayoutChangeType.SectionDelete) 
    { 
        DialogResult Result; 
        Result = MessageBox.Show("Are you sure you want to delete this section?", "Delete?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1); 
        if (Result == DialogResult.Cancel) 
        { 
            e.AllowChange = false; 
        } 
        else 
        { 
            e.AllowChange = true; 
        } 
    } 
}

Inheritance Hierarchy

System.Object
   System.EventArgs
      GrapeCity.ActiveReports.Design.LayoutChangingArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also