XL.Sheet.GetPicture
-------------------

Returns a workbook picture index at position index in worksheet.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.GetPicture"; BookRef; SheetIndex; Index; Selector ) 

**MBS**( **"XL.Sheet.GetPicture";** /\* Returns a workbook picture index at position index in worksheet. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**; /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/   
**$Index**; /\* The image index from 0 to [XL.Sheet.PictureCount](XLSheetPictureCount.md)-1. \*/   
**$Selector**) /\* Which value to return. Can be id, rowTop, colLeft, rowBottom, colRight, width, height, offsetx or offsety. "id" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |
| Index | The image index from 0 to [XL.Sheet.PictureCount](XLSheetPictureCount.md)-1. | $index |
| Selector | Which value to return. Can be id, rowTop, colLeft, rowBottom, colRight, width, height, offsetx or offsety. "id" |  |

### Result

Returns value or error.

### Description

Returns a workbook picture index at position index in worksheet.   
Output parameters:  
(rowTop, colLeft) - top left position of picture;  
(rowBottom, colRight) - bottom right position of picture;  
width - width of picture in pixels;  
height - height of picture in pixels;  
offsetX - horizontal offset of picture in pixels;  
offsetY - vertical offset of picture in pixels.  
Use [XL.Book.GetPicture](XLBookGetPicture.md) for extracting binary data of picture by workbook picture index.  
### See also

- [XL.Book.GetPicture](XLBookGetPicture.md)
- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetCellPicture](XLSheetGetCellPicture.md)
- [XL.Sheet.GetFooter](XLSheetGetFooter.md)
- [XL.Sheet.GetPaper](XLSheetGetPaper.md)
- [XL.Sheet.GetPrintFit](XLSheetGetPrintFit.md)
- [XL.Sheet.GetPrintRow](XLSheetGetPrintRow.md)
- [XL.Sheet.PictureCount](XLSheetPictureCount.md)
- [XL.Sheet.RemovePicture](XLSheetRemovePicture.md)
- [XL.Sheet.SetPrintArea](XLSheetSetPrintArea.md)

This function checks for a license.

Created 18th August 2014 , last changed 17th October 2017

  
[XL.Sheet.GetPaper](XLSheetGetPaper.md) - [XL.Sheet.GetPrintArea](XLSheetGetPrintArea.md)

[HTML Version](XLSheetGetPicture.shtml)