[]
Initializes a new instance of an PictureShape.
public PictureShape()
Initializes a new instance of an PictureShape.
public PictureShape(Image img)
| Type | Name | Description |
|---|---|---|
| Image | img | The image contained in the new PictureShape. |
Initializes a new instance of an PictureShape.
public PictureShape(Image img, int x, int y)
| Type | Name | Description |
|---|---|---|
| Image | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the new shape with respect to the cell, in twips. |
| int | y | The vertical position of the new shape with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(Image img, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| Image | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the cell, in twips. |
| int | y | The vertical position of the image with respect to the cell, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(Image img, Rectangle rc)
| Type | Name | Description |
|---|---|---|
| Image | img | The image contained in the new PictureShape. |
| Rectangle | rc | A rectangle that specifies the image size and position with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(Image img, Size cellSize, ContentAlignment align, ImageScaling scale)
| Type | Name | Description |
|---|---|---|
| Image | img | The Image contained in the new PictureShape. |
| Size | cellSize | The size of the cell that will contain the image, in pixels (used for aligning the image). |
| ContentAlignment | align | A ContentAlignment value that specifies the position of the image in the cell. |
| ImageScaling | scale | An ImageScaling value that specifies the image scaling within the cell. |
Initializes a new instance of an PictureShape.
public PictureShape(IShapeContainer container, Image img, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| IShapeContainer | container | IShapeContainer object that owns the shape container. |
| Image | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the sheet, in twips. |
| int | y | The vertical position of the image with respect to the sheet, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |