Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLPictureShape Class / XLPictureShape Constructor / XLPictureShape Constructor(C1Bitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)
The specified bitmap object contained in the new XLPictureShape.
The size of the cell that will contain the image, in pixels (used for aligning the image).
A horizontal content alignment value that specifies the position of the image in the cell.
A System.Windows.VerticalAlignment 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
    XLPictureShape Constructor(C1Bitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)
    In This Topic
    Initializes a new instance of an XLPictureShape.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal bmp As C1.WPF.Bitmap.C1Bitmap, _
       ByVal cellSize As Size, _
       ByVal align As HorizontalAlignment, _
       ByVal valign As VerticalAlignment, _
       ByVal scale As ImageScaling _
    )
    public XLPictureShape( 
       C1.WPF.Bitmap.C1Bitmap bmp,
       Size cellSize,
       HorizontalAlignment align,
       VerticalAlignment valign,
       ImageScaling scale
    )

    Parameters

    bmp
    The specified bitmap object contained in the new XLPictureShape.
    cellSize
    The size of the cell that will contain the image, in pixels (used for aligning the image).
    align
    A horizontal content alignment value that specifies the position of the image in the cell.
    valign
    A System.Windows.VerticalAlignment value that specifies the position of the image in the cell.
    scale
    An ImageScaling value that specifies the image scaling within the cell.
    Remarks
    This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes and on the given alignment and scaling parameters.
    See Also