NativeExcel2 for .Net Developer's Reference

IFont.TintAndShade Property

Returns or sets the value that lightens or darkens a color. The default value is 0. Read/write double. You can set a number from -1 (darkest) to 1 (lightest) for the TintAndShade property. Zero (0) is neutral.

[Visual Basic]
PropertyTintAndShadeAsDouble
[C#]
doubleTintAndShade{get;set;}
[C++]
__propertydoubleget_TintAndShade();
__propertyvoidset_TintAndShade(double);
[JScript]
functiongetTintAndShade():double
functionsetTintAndShade(double);

Example

This example alters TintAndShade of the font in cell A1 on sheet one.

[C#]
book.Worksheets[1].Range["A1"].Font.TintAndShade = 0.5;
[VisualBasic]
book.Worksheets(1).Range("A1").Font.TintAndShade = 0.5
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1"]->Font->TintAndShade = 0.5;

See Also

IFont Interface | NativeExcel Namespace