Back to Devexpress

CellValue.IsCellImage Property

officefileapi-devexpress-dot-spreadsheet-dot-cellvalue-e196fabc.md

latest5.0 KB
Original Source

CellValue.IsCellImage Property

Indicates whether a cell contains an embedded image.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public bool IsCellImage { get; }
vb
Public ReadOnly Property IsCellImage As Boolean

Property Value

TypeDescription
Boolean

true if the cell contains an embedded image; otherwise, false.

|

Remarks

Use the CellValue.ImageValue property to obtain the cell image value as an OfficeImage object.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsCellImage 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.

spreadsheet-document-api-examples-part1/CS/SpreadsheetExamples/SpreadsheetActions/CellActions.cs#L210

csharp
// Specify image information
if (worksheet.Cells["A2"].Value.IsCellImage)
{

winforms-spreadsheetcontrol-api-part1/CS/SpreadsheetControl/SpreadsheetActions/CellActions.cs#L385

csharp
// Specify image information
if (worksheet.Cells["A2"].Value.IsCellImage)
{

wpf-spreadsheetcontrol-api-part-1/CS/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.cs#L342

csharp
// Specify image information
if (worksheet.Cells["A2"].Value.IsCellImage)
{

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

csharp
// Specify image information
if (worksheet.Cells["A2"].Value.IsCellImage)
{

spreadsheet-document-api-examples-part1/VB/SpreadsheetExamples/SpreadsheetActions/CellActions.vb#L184

vb
' Specify image information
If worksheet.Cells("A2").Value.IsCellImage Then
    worksheet.Cells("A2").ImageInfo.Decorative = True

winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/SpreadsheetActions/CellActions.vb#L350

vb
' Specify image information
If worksheet.Cells("A2").Value.IsCellImage Then
    worksheet.Cells("A2").ImageInfo.Decorative = True

wpf-spreadsheetcontrol-api-part-1/VB/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.vb#L308

vb
' Specify image information
If worksheet.Cells("A2").Value.IsCellImage Then
    worksheet.Cells("A2").ImageInfo.Decorative = True

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

vb
' Specify image information
If worksheet.Cells("A2").Value.IsCellImage Then
    worksheet.Cells("A2").ImageInfo.Decorative = True

See Also

CellValue Class

CellValue Members

DevExpress.Spreadsheet Namespace