Excel for WinRT
XLPictureShape Constructor(WriteableBitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)


The Image contained in the new XLPictureShape.
The size of the cell that will contain the image, in pixels (used for aligning the image).
A Windows.UI.Xaml.HorizontalAlignment value that specifies the position of the image in the cell.
A Windows.UI.Xaml.VerticalAlignment value that specifies the position of the image in the cell.
An ImageScaling value that specifies the image scaling within the cell.
Initializes a new instance of an XLPictureShape.
Syntax
'Declaration
 
Public Function New( _
   ByVal img As Windows.UI.Xaml.Media.Imaging.WriteableBitmap, _
   ByVal cellSize As Windows.Foundation.Size, _
   ByVal align As Windows.UI.Xaml.HorizontalAlignment, _
   ByVal valign As Windows.UI.Xaml.VerticalAlignment, _
   ByVal scale As ImageScaling _
)
'Usage
 
Dim img As Windows.UI.Xaml.Media.Imaging.WriteableBitmap
Dim cellSize As Windows.Foundation.Size
Dim align As Windows.UI.Xaml.HorizontalAlignment
Dim valign As Windows.UI.Xaml.VerticalAlignment
Dim scale As ImageScaling
 
Dim instance As New XLPictureShape(img, cellSize, align, valign, scale)
public XLPictureShape( 
   Windows.UI.Xaml.Media.Imaging.WriteableBitmap img,
   Windows.Foundation.Size cellSize,
   Windows.UI.Xaml.HorizontalAlignment align,
   Windows.UI.Xaml.VerticalAlignment valign,
   ImageScaling scale
)

Parameters

img
The Image 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 Windows.UI.Xaml.HorizontalAlignment value that specifies the position of the image in the cell.
valign
A Windows.UI.Xaml.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

Reference

XLPictureShape Class
XLPictureShape Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback