NativeExcel for .Net Developer's Reference

IRange.Interior Property

Returns an IInterior interface that represents the interior of the specified range.

[Visual Basic]
Property ReadOnly Interior As IInterior
[C#]
IInterior Interior { get; }
[C++]
__property IInterior* get_Interior();
[JScript]
function get Interior() : IInterior

Property Value

IInterior interface.

Example

This example sets the interior color for cells A1:F1 on sheet one to cyan.

[C#]
book.Worksheets[1].Range["A1:F1"].Interior.ColorIndex = 8; //Cyan
[Visual Basic]
book.Worksheets(1).Range("A1:F1").Interior.ColorIndex = 8 'Cyan
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:F1"]->Interior->ColorIndex = 8; //Cyan

See Also

IRange Interface | NativeExcel Namespace | IInterior Interface