Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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#
Wiki Markup
{description}
{excerpt}Returns a [Border|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.{excerpt}
{signature:C#}
 public Border GetBorder(Location location)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetBorder(ByVal location As Location) As Border
Parameters

...

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

{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#}

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

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

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle