Back to Devexpress

Picture.BorderWidth Property

officefileapi-devexpress-dot-spreadsheet-dot-picture-e9f0aef1.md

latest3.8 KB
Original Source

Picture.BorderWidth Property

Gets or sets the width of the picture border.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
float BorderWidth { get; set; }
vb
Property BorderWidth As Single

Property Value

TypeDescription
Single

A Single value that is the width in units specified by the ISpreadsheetComponent.Unit property.

|

Remarks

If the Picture.BorderWidth is equal to zero, the border is not displayed. The border color is specified by the Picture.BorderColor property.

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 BorderWidth 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#L92

csharp
pic.AlternativeText = "Candles snapshot";
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;

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

csharp
pic.AlternativeText = "Spreadsheet Logo";
pic.BorderWidth = 1;
pic.BorderColor = DevExpress.Utils.DXColor.Black;

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

vb
pic.AlternativeText = "Candles snapshot"
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black

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

vb
pic.AlternativeText = "Spreadsheet Logo"
pic.BorderWidth = 1
pic.BorderColor = DevExpress.Utils.DXColor.Black

See Also

BorderColor

Picture Interface

Picture Members

DevExpress.Spreadsheet Namespace