NativeExcel for .Net Developer's Reference

IRange.Interior Property

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

[Visual Basic]
PropertyReadOnlyInteriorAsIInterior
[C#]
IInteriorInterior{get;}
[C++]
__propertyIInterior*get_Interior();
[JScript]
functiongetInterior():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
[VisualBasic]
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