XmlMappedRange.Borders Property (2007 System)

Gets a Borders collection that represents the borders of an XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Borders As Borders
'Usage
Dim instance As XmlMappedRange 
Dim value As Borders 

value = instance.Borders
[BrowsableAttribute(false)]
public Borders Borders { get; }
[BrowsableAttribute(false)]
public:
property Borders^ Borders {
    Borders^ get ();
}
public function get Borders () : Borders

Property Value

Type: Borders
A Borders collection that represents the borders of an XmlMappedRange control.

Examples

The following code example uses the Borders property to draw double lines for the border of an XmlMappedRange, and it uses the Interior property to color the interior of an XmlMappedRange green. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub SetBordersColorAndInterior()
    Me.CustomerLastNameCell.Borders.LineStyle = _
        Excel.XlLineStyle.xlDouble
    Me.CustomerLastNameCell.Interior.Color = &HFF00
End Sub
private void SetBordersColorAndInterior()
{
    this.CustomerLastNameCell.Borders.LineStyle =
        Excel.XlLineStyle.xlDouble;
    this.CustomerLastNameCell.Interior.Color = 0xFF00;
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace