officefileapi-devexpress-dot-spreadsheet-dot-picture-18c7b044.md
Gets or sets the color of the picture border.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
Color BorderColor { get; set; }
Property BorderColor As Color
| Type | Description |
|---|---|
| Color |
A Color object that is the border color.
|
If the Picture.BorderWidth is equal to zero, the border is not displayed.
Note
The SpreadsheetControl does not display a picture border, however all border settings are saved in a file so that Microsoft Excel can correctly display a document.
The following code snippets (auto-collected from DevExpress Examples) contain references to the BorderColor property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;
// Move a picture.
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;
// Move a picture.
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black
' Move a picture.
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black
' Move a picture.
See Also