[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IPictureFormat.Contrast

Contrast Property

Contrast

Gets or sets the contrast for the specified picture or OLE object.

The returned value is a number from 0.0 (the least contrast) to 1.0 (the greatest contrast).

Declaration
double Contrast { get; set; }
Property Contrast As Double
Examples
worksheet.Range["A1:B2"].Value = new object[,] {
    {"Name", "Value"},
    {"Test", 100}
};
IShape picture = worksheet.Shapes.AddCameraPicture("=$A$1:$B$2", 20, 20);
picture.PictureFormat.Contrast = 0.6;
double contrast = picture.PictureFormat.Contrast;