[]
        
(Showing Draft Content)

C1.Word.Canvas.PictureShape.-ctor

PictureShape Constructor

PictureShape()

Initializes a new instance of an PictureShape.

Declaration
public PictureShape()

PictureShape(Image)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(Image img)
Parameters
Type Name Description
Image img

The image contained in the new PictureShape.

PictureShape(Image, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(Image img, int x, int y)
Parameters
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.

PictureShape(Image, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(Image img, int x, int y, int width, int height)
Parameters
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.

PictureShape(Image, Rectangle)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(Image img, Rectangle rc)
Parameters
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.

PictureShape(Image, Size, ContentAlignment, ImageScaling)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(Image img, Size cellSize, ContentAlignment align, ImageScaling scale)
Parameters
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.

PictureShape(IShapeContainer, Image, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(IShapeContainer container, Image img, int x, int y, int width, int height)
Parameters
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.