Programmer's Reference >
ExcelApplication API >
BorderPart
The BorderPart Object
A BorderPart object represents a particular part of a border around a cell or area of cells. To get a BorderPart , use Border.Item .
Examples:
[csharp]
ExcelApplication xla = new ExcelApplication();
Workbook wb = xla.Create();
Worksheet ws = wb.Worksheets[0];
Area a = ws.CreateArea(4, 4, 15, 6);
Border b = a.BorderAround;
BorderPart bp = b.BorderPart[Border.Part.Left];
[vbnet]
Dim xla As New ExcelApplication()
Dim wb As Workbook = xla.Create()
Dim ws As Worksheet = wb.Worksheets(0)
Dim a As Area = ws.CreateArea(4, 4, 15, 6)
Dim b As Border = a.BorderAround
Dim bp As BorderPart = b.BorderPart(Border.Part.Left)
BorderPart Properties
Property |
Type |
Access |
Description |
Color |
Color
|
read write |
Sets or returns the color of the border, as an ExcelWriter Color object
|
Style |
Border.LineStyle
|
read write |
Sets or returns the border's line style
|
This object does not have any methods defined.
Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.
|