ReportBox.OnObjectResizing

Syntax

OnObjectResizing(Sender: Object; Agrs: IReportObjectResizingEventArgs);

Parameters

Sender. The parameter that returns the component that generated the event.

Args. The parameter that enables the user to determine event parameters.

Description

The OnObjectResizing event occurs on object resizing.

Comments

It occurs before the ReportBox.OnBeforeObjectChange event.

Example

Executing the example requires a form containing the ReportBox component named ReportBox1 and the UiReport component named UiReport1 which is a data source for ReportBox1. Set the OperationMode property of the UiReport1 component to Edit, set the Active property to True. UiReport1 must contain loaded regular report with shapes on active sheet.

The specified procedure must be assigned by handler of the OnObjectResizing event for the ReportBox1 component.

Add a link to the Drawing system assembly for Fore.

Sub ReportBox1OnObjectResizing(Sender: object; Args: IReportObjectResizingEventArgs);
Begin
    Debug.WriteLine(
"Object sizes " + Args.Object.Id +
        
" are changed in the report: " + Args.Report.Report.Object.Name + " from the list: " + Args.Sheet.Name +
        
" on the side:" + Args.Side.ToString + ", coordinates:" + Args.Rect.Left.ToString +
        
", operation is canceled:" + Args.Cancel.ToString);
End Sub ReportBox1OnObjectResizing;

After executing the example on object resizing the console window displays the message that contains object identifier, report and list names, place and specified side, where the operation was executed, left side coordinate, and it determines whether resizing is canceled.

See also:

ReportBox