krishnak
04-30-2007, 04:20 PM
I am testing the indenting process. I created a manual tab indent (pressed tab and created an indent for the paragraph). Now I want to remove this indent by code. I tried the following:
oPara.Outdent
oPara.TabIndent(-1)
oPara.TabStops.ClearAll
The above codes are tried individually and together. I am not able to clear the indent created.
However, if I create an indent by pressing the 'Indent' icon on the menu bar, I could clear it by oPara.Outdent.
If I create an indent by code e.g. oPara.TabIndent(1), I could clear it by the code oPara.TabIndent(-1).
Can anyone suggest how best I can remove a manually created Tab indent by code?
Thanks in advance.
oPara.Outdent
oPara.TabIndent(-1)
oPara.TabStops.ClearAll
The above codes are tried individually and together. I am not able to clear the indent created.
However, if I create an indent by pressing the 'Indent' icon on the menu bar, I could clear it by oPara.Outdent.
If I create an indent by code e.g. oPara.TabIndent(1), I could clear it by the code oPara.TabIndent(-1).
Can anyone suggest how best I can remove a manually created Tab indent by code?
Thanks in advance.