ComponentOne Excel for UWP
XLPictureShape Class
Members 

C1.UWP.Excel Assembly > C1.Xaml.Excel Namespace : XLPictureShape Class
Represents an Image embedded in an XLSheet.
Object Model
XLPictureShape Class
Syntax
'Declaration
 
Public Class XLPictureShape 
   Inherits XLShape
   Implements ICloneable 
public class XLPictureShape : XLShape, ICloneable  
Remarks

XLPictureShape derives from the generic XLShape class to expose properties of images embedded in sheets. These properties include the actual Image as well as information on how it should be displayed, including Brightness, Contrast, and clipping information.

You can add images to cells simply by assigning Image objects directly to the Value property of XLCell objects. In this case, C1XLBook will create and initialize an XLPictureShape automatically. However, this method does not provide a lot of flexibility in terms of aligning, scaling, and clipping the image.

A more flexible option is to create an XLPictureShape object in code, using the constructor that takes alignment and scaling parameters, and then assign this XLPictureShape object to a cell's Value property.

Inheritance Hierarchy

System.Object
   C1.Xaml.Excel.XLShape
      C1.Xaml.Excel.XLPictureShape

See Also

Reference

XLPictureShape Members
C1.Xaml.Excel Namespace