FormatForeModuleResult FormatForeModule(FormatForeModuleArg tArg)
tArg. Operation execution parameters.
The FormatForeModule operation formats unit code.
The operation formats unit code by adding single spaces and deleting insignificant spaces in various code elements. To execute the operation, in the tArg.moduleText field specify the unit code, to which formatting should be applied.
The operation results in the unit code after the formatting is applied.
Below is the example of applying formatting to unit code in the development environment. The request contains unit code. The response contains unit code after the formatting is applied.
{
"FormatForeModule" :
{
"tArg" :
{
"moduleText" : "Class test:object\tFunction test:integer;\tBegin\t\t\tEnd Function test;End Class test;"
}
}
}
{
"FormatForeModuleResult" :
{
"moduleText" : "Class test: object \tFunction test: integer; \tBegin \t\t \tEnd Function test; End Class test; "
}
}
public static FormatForeModuleResult FormatForeModule(string text)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tFormat = new FormatForeModule()
{
tArg = new FormatForeModuleArg()
{
moduleText = text
}
};
//
var result = somClient.FormatForeModule(tFormat);
return result;
}
See also: