HtmlEscape(input, leaveSingleQuotesAlone, leaveDoubleQuotesAlone) Indent(str, by, indentFirstLine) ParseInt(str, default_, style, provider) Replace(str, oldValue, newValue, comparison)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: string Indent(this string, int, bool)Declarationpublic static string Indent(
this string str,
int by,
bool indentFirstLine = true
) Summary
Inserts spaces at the beginning of every line contained within the specified string. Parametersthis string | str |
String to add indentation to. | int | by |
Number of spaces to add. | bool | indentFirstLine |
If true (default), all lines are indented; otherwise, all lines except the first. |
Returns
The indented string. |