For more information, I used NTextAtom as follows:
Where '\tab' means the tab in the text and it will be replaced to tab with width of 50.
// init find settings
NFindSettings settings = new NFindSettings();
settings.FindWhat = @"\tab";
settings.SearchDirection = ENSearchDirection.Forward;
// find all occurances
NRangeI textRange = NRangeI.Zero;
NSelection selection = view.EditingRoot.Selection;
while (view.EditingRoot.FindNext(settings, ref textRange))
{
selection.SelectRange(textRange);
NTabInline line = new NTabInline();
line.TabWidth = 50;
NTextAtom textAtom = new NInlineAtom(line);
selection.InsertAtom(textAtom);
}
// move caret to beginning of document
selection.MoveCaret(ENCaretMoveDirection.DocumentBegin, false);