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 > Color

Color Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns the color of the border, as an ExcelWriter Color object. If multiple colors were assigned to border parts, Color will return the color of the top border.

Color is a read / write property.



Examples:

[csharp]
// Get Color
Color c = b.Color;

// Set Color
b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue);
[vbnet]
' Get Color
Dim c As Color = b.Color

' Set Color
b.Color = wb.Palette.GetClosestColor(System.Drawing.Color.Blue)
[vbnet]


Getter

Signature:

public Color Color

Returns:

Color An ExcelWriter Color object that represents the color of the border.

Setter

Signature:

public void Color Color borderColor

Type:

Color



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.