ComponentOne Word for WinForms
C1.C1Word.4.5.2 Assembly / C1.C1Word.Canvas Namespace / PictureShape Class / PictureShape Constructor / PictureShape Constructor(Image,Size,ContentAlignment,ImageScaling)
The Image contained in the new PictureShape.
The size of the cell that will contain the image, in pixels (used for aligning the image).
A System.Drawing.ContentAlignment value that specifies the position of the image in the cell.
An ImageScaling value that specifies the image scaling within the cell.

In This Topic
    PictureShape Constructor(Image,Size,ContentAlignment,ImageScaling)
    In This Topic
    Initializes a new instance of an PictureShape.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal img As System.Drawing.Image, _
       ByVal cellSize As System.Drawing.Size, _
       ByVal align As System.Drawing.ContentAlignment, _
       ByVal scale As ImageScaling _
    )
    public PictureShape( 
       System.Drawing.Image img,
       System.Drawing.Size cellSize,
       System.Drawing.ContentAlignment align,
       ImageScaling scale
    )

    Parameters

    img
    The Image contained in the new PictureShape.
    cellSize
    The size of the cell that will contain the image, in pixels (used for aligning the image).
    align
    A System.Drawing.ContentAlignment value that specifies the position of the image in the cell.
    scale
    An ImageScaling value that specifies the image scaling within the cell.
    See Also