Sub OnShapeChanged(Sender: Object; Args: IShapeChangedEventArgs);
Begin
//set of operators;
End Sub OnShapeChanged;
Sub OnShapeChanged(Sender: System.Object; Args: Prognoz.Platform.Interop.Workspace.ShapeChangedEventArgs);
Begin
//set of operators;
End Sub OnShapeChanged;
Sender. Parameter that returns the component that has generated the event.
Args. Parameter that enables the user to determine event parameters.
The OnShapeChanged event occurs after any changes related to workspace shape.
The event occurs on creating or removing shapes and also on changing their parameters (shape text, format or image are changed).
Executing the example requires a form with the WorkspaceBox component named WorkspaceBox1 and a data source for WorkspaceBox1.
Sub WorkspaceBox1OnShapeChanged(Sender: Object; Args: IShapeChangedEventArgs);
Begin
Debug.WriteLine(Args.Shape.Id);
Debug.WriteLine(Args.ShapeOperation);
End Sub WorkspaceBox1OnShapeChanged;
If any changes related to shapes are made in the component, the development environment component displays shape identifier and the action that caused event generation.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Private Sub workspaceBoxNet1_OnShapeChanged(Sender: System.Object; Args: Prognoz.Platform.Interop.Workspace.ShapeChangedEventArgs);
Begin
System.Diagnostics.Debug.WriteLine(Args.Shape.Id);
System.Diagnostics.Debug.WriteLine(Args.ShapeOperation);
End Sub;
See also: