FormatForeLineResult FormatForeLine(FormatForeLineArg tArg)
tArg. Operation execution parameters.
The FormatForeLine operation forms a code string.
The operation formats the code string by adding single indents and deleting insignificant spaces in code string elements. To execute the operation, in the tArg.line field specify the code string, to which formatting should be applied.
The operation results in the cod string after formatting is applied.
Below is the example of applying formatting to code string in the development environment. The request contains code string. The response contains code string after formatting is applied.
{
"FormatForeLine" :
{
"tArg" :
{
"line" : "MB:=MetabaseClass.Active ; "
}
}
}
{
"FormatForeLineResult" :
{
"line" : "MB := MetabaseClass.Active;"
}
}
public static FormatForeLineResult FormatForeLine(string text)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tFormat = new FormatForeLine()
{
tArg = new FormatForeLineArg()
{
line = text
}
};
//
var result = somClient.FormatForeLine(tFormat);
return result;
}
See also: