ClearDefault;
The ClearDefault method sets default values for all the object parameters.
Executing the example requires a form containing the Button component with the Button1 identifier, the UiMetabaseObjectParams component and the component, which parameters' values are controlled by UiMetabaseObjectParams1.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
UIObj: IUiMetabaseObject;
Begin
UIObj := UiMetabaseObjectParams1.UiObject;
UIObj.ClearDefault;
UIObj.Active := True;
End Sub Button1OnClick;
After executing the example the object, parameters' values of which are controlled by the UiMetabaseObjectParams1 component, is reopened with default parameters values.
See also: