Back to Devexpress

Picture Interface

officefileapi-devexpress-dot-spreadsheet-437758d3.md

latest6.6 KB
Original Source

Picture Interface

An image embedded in a worksheet.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public interface Picture :
    Shape,
    FloatingObject,
    ShapeFormatBase
vb
Public Interface Picture
    Inherits Shape,
             FloatingObject,
             ShapeFormatBase

The following members return Picture objects:

Show 22 links

LibraryRelated API Members
WinForms ControlsSpreadsheetControl.SelectedPicture
WPF ControlsSpreadsheetControl.SelectedPicture
Office File APIPictureCollection.AddPicture(Image, Cell)
PictureCollection.AddPicture(Image, CellRange, Boolean)
PictureCollection.AddPicture(Image, CellRange)
PictureCollection.AddPicture(Image, Single, Single, Single, Single, Boolean)
PictureCollection.AddPicture(Image, Single, Single, Single, Single)
PictureCollection.AddPicture(Image, Single, Single)
PictureCollection.AddPicture(SpreadsheetImageSource, Cell)
PictureCollection.AddPicture(SpreadsheetImageSource, CellRange, Boolean)
PictureCollection.AddPicture(SpreadsheetImageSource, CellRange)
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single, Single, Single, Boolean)
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single, Single, Single)
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single)
PictureCollection.AddPicture(String, Cell)
PictureCollection.AddPicture(String, CellRange, Boolean)
PictureCollection.AddPicture(String, CellRange)
PictureCollection.AddPicture(String, Single, Single, Single, Single, Boolean)
PictureCollection.AddPicture(String, Single, Single, Single, Single)
PictureCollection.AddPicture(String, Single, Single)
PictureCollection.GetPictureById(Int32)
Worksheet.SelectedPicture

Remarks

Use the PictureCollection.AddPicture method to insert an image in a worksheet. All pictures in a worksheet are contained within the PictureCollection accessible via the Worksheet.Pictures method. Each picture is assigned a default name (Picture0, Picture1 etc.) when you add it to the Shapes collection. To give the picture a more meaningful name, use the Shape.Name property.

To obtain a picture from a collection, use either the PictureCollection.GetPictureById, or the PictureCollection.GetPicturesByName method.

A Picture object possesses the functionality of a Shape object, and provides you with characteristics of an original image, such as Picture.OriginalHeight, Picture.OriginalWidth, Picture.ImageFormat.

See Also

Picture Members

Charts and Graphics in Spreadsheet Documents

DevExpress.Spreadsheet Namespace