We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to create Tab stop not equal to 0.65 (Level 4 Tab stops: Not at 0.65")

Hi Team,
How to create the Tab stop should not be equal to 0.65 (Level 4 Tab stops: Not at 0.65"). Kindly help me asap.
I used below code but its not working not equal to 0.65 condition .but its working equal to 0.65 condition.

Style heading4 = doc.Styles[StyleIdentifier.Heading4];
heading4.ParagraphFormat.FirstLineIndent = ConvertUtil.InchToPoint(-0.6);
heading4.ParagraphFormat.LeftIndent = -heading4.ParagraphFormat.FirstLineIndent;
heading4.ParagraphFormat.KeepWithNext = false;
heading4.ParagraphFormat.KeepTogether = false;
heading4.ParagraphFormat.TabStops.Add(ConvertUtil.InchToPoint(0.65), TabAlignment.Left, TabLeader.None);
heading4.ParagraphFormat.Style.IsQuickStyle = true;

@Princeshivananjappa Looks like you need to clear/remove tab stop at the specified position. You can achieve this using TabStopCollection.RemoveByIndex or TabStopCollection.RemoveByPosition.

Kindly help me I used your give above property but its not working.
Please find the input document I used.
Input_word_document981.docx (15.5 KB)

Please find the below code.

heading4.ParagraphFormat.KeepWithNext = false;
heading4.ParagraphFormat.KeepTogether = false;
heading4.ParagraphFormat.FirstLineIndent = ConvertUtil.InchToPoint(-0.6);
heading4.ParagraphFormat.LeftIndent = -heading4.ParagraphFormat.FirstLineIndent;
TabStop tab = heading4.ParagraphFormat.TabStops[0.65];
// Replace the first default tab, stop with a custom tab stop.
heading4.ParagraphFormat.TabStops.RemoveByPosition(tab.Position);

@Princeshivananjappa It is not quite clear what you are trying to achieve. Could you please elaborate your reequipment in more details and attach your expected output document here for our reference or screenshot from MS Word UI? We will check and provide you more information.