Back to Devexpress

Worksheet.SelectedPicture Property

officefileapi-devexpress-dot-spreadsheet-dot-worksheet-5873e5b1.md

latest3.0 KB
Original Source

Worksheet.SelectedPicture Property

Gets or sets a picture selected in the worksheet.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Picture SelectedPicture { get; set; }
vb
Property SelectedPicture As Picture

Property Value

TypeDescription
Picture

A Picture object. If you assign a picture located in a worksheet other than the current worksheet, an exception is raised.

|

Remarks

An image in a worksheet is a Picture object, which is a descendant of the Shape interface. All images in a current worksheet are contained in the ShapeCollection accessible via the Worksheet.Shapes property. To specify a picture selected in the worksheet, use the SelectedPicture or Worksheet.SelectedShape property.

You can also select multiple shapes in the worksheet simultaneously. To get or set a list of shapes selected in the worksheet, use the Worksheet.GetSelectedShapes or Worksheet.SetSelectedShapes method.

The SelectedPicture , SelectedShape , GetSelectedShapes and SetSelectedShapes members of the SpreadsheetControl or SpreadsheetControl object allow you to select shapes in the worksheet that is currently active in the control.

See Also

SelectedShape

GetSelectedShapes()

SetSelectedShapes(IList<Shape>)

Worksheet Interface

Worksheet Members

DevExpress.Spreadsheet Namespace