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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns a [Border|Border] object that lets you manipulate the border this table cell at a particular location.{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

...

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

{signature}
{parameters}
{param:location}A [Location|TableCell.Location] object that represents the location of the Border to return.{param}
{returns}A {{Border}} object that represents the border for this table cell at a particular location.{returns}
{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

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

          //--- Set the Left Border color to blue
          cell.GetBorder(Border.Location.Left).Color = Color.Blue;
        
{code}
{code:vb.net
|title=vb.net
}

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

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