Word pagesetup.leftmargin
About Joseph Brownell. What you can read next Buy OneNote Training. Photoshop Elements Cheat Sheet. Eugene, as i am manipulating a Word Doc that has quite a complex layout, the method you provided which i have tried before will therefore not work. Paul, true that i should not ignore the implications, although right now trying to change it at whole document level is the only way i hope to work out via code.
Unless you're going to iterate though all the Sections, adjusting column widths, your only option would be to use: wdApp. On a final note There are some things in the Word UI that have no direct equivalent in the Word API; things that Word does to make life easier for the end user, but the assumption is that the developer is going to have to program the entire thing that Word takes care of for the end-user.
Setting section-level properties for an entire document can be one of those things. The reason I use the wording "can be one of those things", above, is that Word can sometimes make a global setting change such as wdApp. RightMargin and sometimes not. To a certain extent, it depends on the complexity of the document.
For larger or complex documents this can fail, which is why it's advisable to loop the sections, rather than try to apply settings to ActiveDocument. Actually, that's up to you, as the original poster :- Only you can determine which messages in the discussion can be considered valid replies to your question. Once you've marked one or more messages in the discussion as "Answer", the thread will be closed.
Dev Center. Explore Why Office? Android ASP. It's almost like when a textbox shape is selected, the ActiveDocument. PageSetup margin values are set to Word is apparently saying "" because multiple values are possible, but I don't understand why.
My document only has 1 section. If I understand the question correctly, you can align the shape to the left margin simply by assigning.
Alse see Shape. Left property Remarks. Try C :. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. LeftMargin returns while textbox is selected Ask Question.
Asked 5 months ago. Active 5 months ago. Viewed times. What am I doing wrong? Thank you. Shape shape in sel. Improve this question. Kevin Kevin 1, 2 2 gold badges 11 11 silver badges 27 27 bronze badges. Privacy policy. Returns or sets the distance in points between the left edge of the page and the left boundary of the body text.
If the MirrorMargins property is set to True , the LeftMargin property controls the setting for inside margins and the RightMargin property controls the setting for outside margins. This example sets the left margin to 1 inch 72 points for the second section in the active document.
0コメント