Picture Interface
An image embedded in a worksheet.
Namespace: DevExpress.Spreadsheet
Assembly:
DevExpress.Spreadsheet.v17.2.Core.dll
Declaration
public interface Picture :
Shape,
FloatingObject
Public Interface Picture
Inherits Shape,
FloatingObject
The following members accept/return Picture objects:
Library |
Related API Members |
Cross-Platform Class Library |
PictureCollection.AddPicture(Image, Cell) |
PictureCollection.AddPicture(Image, Range) |
PictureCollection.AddPicture(Image, Range, Boolean) |
PictureCollection.AddPicture(Image, Single, Single) |
PictureCollection.AddPicture(Image, Single, Single, Single, Single) |
PictureCollection.AddPicture(Image, Single, Single, Single, Single, Boolean) |
PictureCollection.AddPicture(SpreadsheetImageSource, Cell) |
PictureCollection.AddPicture(SpreadsheetImageSource, Range) |
PictureCollection.AddPicture(SpreadsheetImageSource, Range, Boolean) |
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single) |
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single, Single, Single) |
PictureCollection.AddPicture(SpreadsheetImageSource, Single, Single, Single, Single, Boolean) |
PictureCollection.AddPicture(String, Cell) |
PictureCollection.AddPicture(String, Range) |
PictureCollection.AddPicture(String, Range, Boolean) |
PictureCollection.AddPicture(String, Single, Single) |
PictureCollection.AddPicture(String, Single, Single, Single, Single) |
PictureCollection.AddPicture(String, Single, Single, Single, Single, Boolean) |
PictureCollection.GetPictureById(Int32) |
Worksheet.SelectedPicture |
WinForms Controls |
SpreadsheetControl.SelectedPicture |
WPF Controls |
SpreadsheetControl.SelectedPicture |
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.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Picture interface.
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.
See Also