[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IPictureFormat.Crop

Crop Property

Crop

Returns the ICrop object that represents the cropping settings for the specified IPictureFormat object.

Use the returned object to access or modify image cropping properties such as the source image size, image offsets, and the visible area of the picture.

Declaration
ICrop Crop { get; }
ReadOnly Property Crop As ICrop
Examples
IShape picture = worksheet.Shapes.AddCameraPicture("=$A$1:$B$2", 20, 20);
IPictureFormat pictureFormat = picture.PictureFormat;
ICrop crop = pictureFormat.Crop;
crop.PictureOffsetX = 10;