XLPictureShape Constructor(WriteableBitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)
In This Topic
Initializes a new instance of an
XLPictureShape.
Syntax
'Declaration
Public Function New( _
ByVal As Windows.UI.Xaml.Media.Imaging.WriteableBitmap, _
ByVal As Windows.Foundation.Size, _
ByVal As Windows.UI.Xaml.HorizontalAlignment, _
ByVal As Windows.UI.Xaml.VerticalAlignment, _
ByVal As ImageScaling _
)
public XLPictureShape(
Windows.UI.Xaml.Media.Imaging.WriteableBitmap ,
Windows.Foundation.Size ,
Windows.UI.Xaml.HorizontalAlignment ,
Windows.UI.Xaml.VerticalAlignment ,
ImageScaling
)
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.
See Also