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