Format component seems to be derived from C# string formatting (cf. String.Format method reference).
F input needs a text format, defined as follows:
The zero-based index of the argument, whose string representation is to be included at this position in the string. (If this argument is
null, an empty string will be included at this position in the string.) This specifies, where your data from input
0 is going to be placed in the new, formatted string.
An optional signed integer that indicates the total length of the field into which the argument is inserted and whether it is right-aligned (a positive integer) or left-aligned (a negative integer). If you omit alignment, the string representation of the corresponding argument is inserted in a field with no leading or trailing spaces.
If the value of
alignment is less than the length of the argument to be inserted,
alignment is ignored and the length of the string representation of the argument is used as the field width.
Optional. A string that specifies the format of the corresponding argument’s result string. If you omit
formatString, the corresponding argument’s parameterless ToString method is called to produce its string representation. If you specify formatString, the argument referenced by the format item must implement the IFormattable interface, which is especially handy for you!
You script could look like this:
However, I’m not sure what the
Culture C input really provides here, since it seems to be no substitute for the
Text Format F.
One more thing to note is, that when applying a
formatString, you need to input your data as a type, supported by the
formatString (cf. IFormattable interface above).
I’ve for instance inputted 47980, which was output as a string from the Panel, as an integer!