Click or drag to resize

ExcelPicture Class

Represents a picture in a worksheet.
Inheritance Hierarchy
SystemObject
  ExpertXls.ExcelLibExcelPicture

Namespace:  ExpertXls.ExcelLib
Assembly:  expertxls (in expertxls.dll) Version: 7.0.0
Syntax
public class ExcelPicture

The ExcelPicture type exposes the following members.

Properties
  NameDescription
Public propertyBottomRowIndex
Gets or sets the one based bottom row index of the picture area in the worksheet. The bottom row is not included in the picture area.
Public propertyImageObj
Gets the System.Drawing.Image object.
Public propertyLeftColumnIndex
Gets or sets the one based left column index of the picture in the worksheet. The left column is included in the picture area.
Public propertyPictureHeightPoints
Gets or sets the height in points (1 point is 1/72 inch) of the picture area. The bottom row index is adjusted based on the specified height.
Public propertyPictureHeightPx
Gets or sets the height in pixels (1 pixels is 1/96 inch) of the picture area. The bottom row index is adjusted based on the specified height. The height is measured in pixels. The dimensions can be converted from pixels to inches using the UnitsConverter class.
Public propertyPictureLeftPositionPoints
Gets or sets the position in points (1 point is 1/72 inch) of the left edge of the picture area inside the worksheet. The left and right column indexes are adjusted based on the specified left position to keep the width.
Public propertyPictureLeftPositionPx
Gets or sets the position in pixels (1 pixels is 1/96 inch) of the left edge of the picture area inside the worksheet. The left and right column indexes are adjusted based on the specified left position to keep the width. The left position is measured in pixels. The dimensions can be converted from pixels to inches using the UnitsConverter class.
Public propertyPictureName
Gets or sets the picture name in workbook. If no name was explicitly set then a default name will be generated for the picture when the workbook is saved.
Public propertyPicturePlacement
Represents how the picture is attached to the cells below it. The default value is ExcelPicturePlacement.MoveDontSizeWithCells and the image will move with the cells, but it will not size with them.
Public propertyPictureTopPositionPoints
Gets or sets the position in points (1 point is 1/72 inch) of the top edge of the picture area inside the worksheet. The top and bottom column indexes are adjusted based on the specified top position to keep the height.
Public propertyPictureTopPositionPx
Gets or sets the position in pixels (1 pixels is 1/96 inch) of the top edge of the picture area inside the worksheet. The top and bottom column indexes are adjusted based on the specified top position to keep the height. The top position is measured in pixels. The dimensions can be converted from pixels to inches using the UnitsConverter class.
Public propertyPictureWidthPoints
Gets or sets the picture area width in points (1 point is 1/72 inch). The right column index is adjusted based on the specified width.
Public propertyPictureWidthPx
Gets or sets the width in pixels (1 pixels is 1/96 inch) of the picture area. The right column index is adjusted based on the specified width. The width is measured in pixels. The dimensions can be converted from pixels to inches using the UnitsConverter class.
Public propertyRightColumnIndex
Gets or sets the one based right column index of the picture area in the worksheet. The right column is not included in the picture area.
Public propertyTopRowIndex
Gets or sets the one based top row index of the picture area in the worksheet. The top row is included in the picture area.
Public propertyWorksheet
Gets the worksheet of this picture.
Top
See Also