Back to Devexpress

Picture.BorderColor Property

officefileapi-devexpress-dot-spreadsheet-dot-picture-18c7b044.md

latest3.6 KB
Original Source

Picture.BorderColor Property

Gets or sets the color of the picture border.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Color BorderColor { get; set; }
vb
Property BorderColor As Color

Property Value

TypeDescription
Color

A Color object that is the border color.

|

Remarks

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.

wpf-spreadsheetcontrol-api-part-2/CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ShapeActions.cs#L93

csharp
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;
// Move a picture.

spreadsheet-document-api-examples-part2/CS/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.cs#L57

csharp
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;
// Move a picture.

wpf-spreadsheetcontrol-api-part-2/VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ShapeActions.vb#L87

vb
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black
' Move a picture.

spreadsheet-document-api-examples-part2/VB/SpreadsheetDocServerAPIPart2/CodeExamples/PictureActions.vb#L49

vb
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black
' Move a picture.

See Also

BorderWidth

Picture Interface

Picture Members

DevExpress.Spreadsheet Namespace