ClearDefault;
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.
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.
Add a link to the KeFore system assembly.
Imports Prognoz.Platform.Interop.KeFore;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
UIObj: IUiMetabaseObject;
Begin
UIObj := uiMetabaseObjectParamsNet1.UiMetabaseObject;
UIObj.ClearDefault();
UIObj.Active := True;
End Sub;
See also: