
Use (n).Font.Borders(1) or (n).Font.Borders(wdBorderTop). In the wdBorderType enumeration, there is no constant for "the one and only border of a Font object". You can't specify different borders for top, left, bottom or right. LineStyle is not wdLineStyleNone Paragraph style: Borders on the bullet or numbering shown on a paragraph Paragraph style: Borders on the text of the paragraph It doesn't cause an error to set it for other borders, but you don't see it.
Shadow? Yes, but you see it only on the bottom border. I haven't experienced the same problems using. Or, in an otherwise borderless style, if you set = True, Word adds a right border, but no other. I've seen at least one case where Style.Borders causes problems, for example if you set the top or bottom border, Word also sets the. If you change one, Word automatically changes the other. Style.Borders and appear to be the same object. Horizontal borders appear between paragraphs.
You can specify different borders for top, left, bottom and right, plus horizontal.
In the object model: Style.Borders or. Paragraph styles Paragraph style: Borders on the paragraph As with borders in general, you can't use. For exampleĪctiveDocument.Styles("M圜haracterStyle").Font.Borders(wdBorderTop).Visible = False. You can read the property reliably, but you cannot set a border using. Character style: Borders on the font of the character style Accessing Style.Borders for a character style causes error 5900 'This property is not allowed for character styles'. Character styles Character style: Borders on the style itself This page merely describes my experience. Microsoft hasn't documented how the borders are supposed to behave. Sometimes can you set a shadow on the borders, and sometimes you can't.
Sometimes you can set the distance between the borders and the text, and sometimes you can't.Borders property can have 1 or 5 borders. For character and paragraph styles, a.The issues for character and paragraph styles are: Borders in character and paragraph styles So what's the problem with borders and styles?įor basic issues in of controlling borders in styles, see Border basics.