Thread: line numbers
View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default line numbers

Mr. Daniels,

I don't have "support for ... languages" enabled so I didn't test. However
this might help you:

Change paragraph direction
The feature or some of the options described in this Help topic are
only available if support for right-to-left (right-to-left: Refers to
keyboard settings, document views, user interface objects, and the direction
in which text is displayed. Arabic and Hebrew are right-to-left languages.)
languages is enabled through Microsoft Office Language Settings.

1.. Place the insertion point in the paragraph that you want to
change, or select several paragraphs.
2.. Do one of the following:
a.. To have text begin from the left, click Left-to-Right on the
Formatting toolbar (toolbar: A bar with buttons and options that you use to
carry out commands. To display a toolbar, press ALT and then SHIFT+F10.).
a.. To have text begin from the right, click Right-to-Left on the
Formatting toolbar.
When you change the paragraph direction, Microsoft Word leaves
justified and centered text as it is. In the case of left-aligned or
right-aligned text, Word flips the alignment to its opposite. For example,
if you have a left-to-right paragraph that is right aligned, such as the
date at the top of a letter, clicking Right-to-Left results in a
right-to-left paragraph that is left aligned.


That being said, and ICBW, based on what appears to be avialabe
programatically, Line Numbers can only be positioned in the left margin:

Sub ScratchMaco()
With ActiveDocument.Sections(1).PageSetup.LineNumbering
.Active = True
.CountBy = 5
'DistanceFromText: Returns or sets the distance (in points) between the
right edge _
'of line numbers and the left edge of the document text. Read/write
Single.
.DistanceFromText = 5
End With
End Sub

As you should see, DistanceFromText is based on "the left edge of the
document text." A negative value creates and error.


Peter T. Daniels wrote:
Paragraph by paragraph; Text Direction (the button on the Home tab)
can't be included in a paragraph style.

If there's a way to set Text Direction for a section, I didn't find it
in Page Setup.

On Nov 1, 12:50 am, Guy Lydig
wrote:
Is your text direction set to: right-to-left?



"Peter T. Daniels" wrote:
I'm typing a page of Arabic. Is there any way to get the line
numbers to appear in the right margin (i.e., at the beginnings of
the lines)? Setting "mirror margins" doesn't do it.


--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.