[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IBackgroundPicture.CornerRadius

CornerRadius Property

CornerRadius

Gets or sets a value that describes how rounded the corners are on a rectangular die-cut, in pixels.

This value applies to the rectangular clipping shape used by the background picture. A larger value produces more rounded corners.

Declaration
int CornerRadius { get; set; }
Property CornerRadius As Integer
Examples
IBackgroundPictures backgroundPictures = worksheet.BackgroundPictures;
IBackgroundPicture picture = null;
using (MemoryStream stream = CreateSampleImageStream())
{
    picture = backgroundPictures.AddPicture(stream, ImageType.PNG, 12, 18, 120, 80);
}
int cornerRadius = picture.CornerRadius;