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 that lets you manipulate the border this table cell at a particular location.

Signature
C#
C#
 public Border GetBorder(Location location)
Signature
vb.net
vb.net
Public Function GetBorder(ByVal location As Location) As Border
Parameters
Param
location
location

A Location object that represents the location of the Border to return.

Returns

A Border object that represents the border for this table cell at a particular location.

Remarks

Allowed locations are Top, Left, Bottom, and Right. They refer to the border for those sides of the table cell.

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

Example
Code Block
csharp
csharp
titleC#

          //--- Set the Left Border color to blue
          cell.GetBorder(Border.Location.Left).Color = Color.Blue;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Set the Left Border color to blue
          cell.GetBorder(Border.Location.Left).Color = Color.Blue