public static GetLineIndentSize ( |
||
tb | ||
position | int | |
tabSize | int | |
Результат | int |
public static int GetLineIndentSize(TextBuilder tb, int position, int tabSize) {
for (int i = position - 1; i >= 0; i--) {
if (CharExtensions.IsLineBreak(tb.Text[i])) {
return TextIndentInSpaces(tb.Text.Substring(i + 1), tabSize);
}
}
return 0;
}
}