event LayoutStartChanging (Operation as LayoutChangingEnum)
Occurs when the control's layout is about to be changed.

TypeDescription
Operation as LayoutChangingEnum A LayoutChangingEnum expression that specifies the operation that begins.
The LayoutStartChanging event occurs once the user starts an operation on the surface, like creating / adding a new element to the surface. During the LayoutStartChaning event, you can call the CancelLayoutChanging method to cancel the specified operation. The LayoutEndChanging event notifies that the specified operation ends.

The operations being signaled by the LayoutStartChanging / LayoutEndChanging events are:

For instance, the following events occur when user creates an element on the surface:

Syntax for LayoutStartChanging event, /NET version, on:

private void LayoutStartChanging(object sender,exontrol.EXSURFACELib.LayoutChangingEnum Operation)
{
}

Private Sub LayoutStartChanging(ByVal sender As System.Object,ByVal Operation As exontrol.EXSURFACELib.LayoutChangingEnum) Handles LayoutStartChanging
End Sub

Syntax for LayoutStartChanging event, /COM version, on:

private void LayoutStartChanging(object sender, AxEXSURFACELib._ISurfaceEvents_LayoutStartChangingEvent e)
{
}

void OnLayoutStartChanging(long Operation)
{
}

void __fastcall LayoutStartChanging(TObject *Sender,Exsurfacelib_tlb::LayoutChangingEnum Operation)
{
}

procedure LayoutStartChanging(ASender: TObject; Operation : LayoutChangingEnum);
begin
end;

procedure LayoutStartChanging(sender: System.Object; e: AxEXSURFACELib._ISurfaceEvents_LayoutStartChangingEvent);
begin
end;

begin event LayoutStartChanging(long Operation)
end event LayoutStartChanging

Private Sub LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSURFACELib._ISurfaceEvents_LayoutStartChangingEvent) Handles LayoutStartChanging
End Sub

Private Sub LayoutStartChanging(ByVal Operation As EXSURFACELibCtl.LayoutChangingEnum)
End Sub

Private Sub LayoutStartChanging(ByVal Operation As Long)
End Sub

LPARAMETERS Operation

PROCEDURE OnLayoutStartChanging(oSurface,Operation)
RETURN

Syntax for LayoutStartChanging event, /COM version (others), on:

<SCRIPT EVENT="LayoutStartChanging(Operation)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function LayoutStartChanging(Operation)
End Function
</SCRIPT>

Procedure OnComLayoutStartChanging OLELayoutChangingEnum llOperation
	Forward Send OnComLayoutStartChanging llOperation
End_Procedure

METHOD OCX_LayoutStartChanging(Operation) CLASS MainDialog
RETURN NIL

void onEvent_LayoutStartChanging(int _Operation)
{
}

function LayoutStartChanging as v (Operation as OLE::Exontrol.Surface.1::LayoutChangingEnum)
end function

function nativeObject_LayoutStartChanging(Operation)
return