Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Border

The Border Object


A Border object represents a border around a cell or area of cells. To return a Border object use Area.BorderAround.



Examples:

[csharp]
ExcelApplication xla = new ExcelApplication();
Workbook wb = xla.Create();
Worksheet ws = wb[0];
Area a = ws.CreateArea(4, 4, 15, 6);
Border b = a.BorderAround;
[vbnet]
Dim xla As New ExcelApplication()
Dim wb As Workbook = xla.Create()
Dim ws As Worksheet = wb(0)
Dim a As Area = ws.CreateArea(4, 4, 15, 6)
Dim b As Border = a.BorderAround


Border Enumerations

NameDescription
Border.LineStyle

Use the LineStyle class to set a line style for a Border or BorderPart

Border.Part

Use the Part class to set a color or line style for a specific part of a border



Border Properties

Property Type Access Description
Color Color read
write

Sets or returns the color of the border, as an ExcelWriter Color object

Item BorderPart read

Returns a BorderPart object representing the specified part of the border

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.