[]
        
(Showing Draft Content)

C1.WPF.Word.Canvas.PictureShape.-ctor

PictureShape Constructor

PictureShape()

Initializes a new instance of an PictureShape.

Declaration
public PictureShape()

PictureShape(WriteableBitmap)

Initializes a new instance of an PictureShape.

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

The image contained in the new PictureShape.

PictureShape(WriteableBitmap, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(WriteableBitmap img, int x, int y)
Parameters
Type Name Description
WriteableBitmap 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(WriteableBitmap, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(WriteableBitmap img, int x, int y, int width, int height)
Parameters
Type Name Description
WriteableBitmap 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(WriteableBitmap, Rect)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(WriteableBitmap img, Rect rc)
Parameters
Type Name Description
WriteableBitmap img

The image contained in the new PictureShape.

Rect rc

A rectangle that specifies the image size and position with respect to the cell, in twips.

PictureShape(WriteableBitmap, Size, ContentAlignment, ImageScaling)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(WriteableBitmap img, Size cellSize, ContentAlignment align, ImageScaling scale)
Parameters
Type Name Description
WriteableBitmap 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, WriteableBitmap, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(IShapeContainer container, WriteableBitmap img, int x, int y, int width, int height)
Parameters
Type Name Description
IShapeContainer container

IShapeContainer object that owns the shape container.

WriteableBitmap 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.

PictureShape(C1Bitmap)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(C1Bitmap bmp)
Parameters
Type Name Description
C1Bitmap bmp

The specified bitmap object contained in the new PictureShape.

PictureShape(C1Bitmap, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(C1Bitmap bmp, int x, int y)
Parameters
Type Name Description
C1Bitmap bmp

The specified bitmap object 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(C1Bitmap, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(C1Bitmap bmp, int x, int y, int width, int height)
Parameters
Type Name Description
C1Bitmap bmp

The specified bitmap object 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(C1Bitmap, Rect)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(C1Bitmap bmp, Rect rc)
Parameters
Type Name Description
C1Bitmap bmp

The specified bitmap object contained in the new PictureShape.

Rect rc

A rectangle that specifies the image size and position with respect to the cell, in twips.

PictureShape(C1Bitmap, Size, ContentAlignment, ImageScaling)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(C1Bitmap bmp, Size cellSize, ContentAlignment align, ImageScaling scale)
Parameters
Type Name Description
C1Bitmap bmp

The specified bitmap object 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, C1Bitmap, int, int, int, int)

Initializes a new instance of an PictureShape.

Declaration
public PictureShape(IShapeContainer container, C1Bitmap bmp, int x, int y, int width, int height)
Parameters
Type Name Description
IShapeContainer container

IShapeContainer object that owns the shape container.

C1Bitmap bmp

The specified bitmap object 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.