Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Returns a Border object on which you can manipulate the border properties of a paragraph for a specified location. Valid Border locations are: Top, Left, Bottom, Right, Between, and Bar. Bar and Between are less obvious locations and they are explained below.

Signature
C#
C#
 public Border GetBorder(Location location)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Function GetBorder(ByVal location As Location) As Border
{signature}
{parameters}
{param:location}{param}
{returns}A {{Border}} object on which you can manipulate the border properties of a paragraph at the given location.{returns}
{remarks}*Between* refers to a border to place between conforming paragraphs. Two paragraphs conform when both have borders, their brcLeft and brcRight matches, their widths are the same, they both belong to tables or both do not, and have the same [AbsolutePositioning|ParagraphFormatting.AbsolutePositioning] settings.

*Bar* refers to a border to be displayed on outside of text when facing pages are displayed.

MS Word equivalent: Format menu > Borders and Shading... > Borders tab

{remarks}
{example}{code:csharp|title=C#}
Parameters
Param
location
location

Returns

A Border object on which you can manipulate the border properties of a paragraph at the given location.

Remarks

Between refers to a border to place between conforming paragraphs. Two paragraphs conform when both have borders, their brcLeft and brcRight matches, their widths are the same, they both belong to tables or both do not, and have the same AbsolutePositioning settings.

Bar refers to a border to be displayed on outside of text when facing pages are displayed.

MS Word equivalent: Format menu > Borders and Shading... > Borders tab

Example
Code Block
csharp
csharp
titleC#


          oParagraphFormatting.GetBorder(Border.Location.Top).LineStyle =
               Border.LineStyle.Double;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          oParagraphFormatting.GetBorder(Border.Location.Top).LineStyle = _
               Border.LineStyle.Double
        
{code} {example}