Represents the interior of range of cells.
For a list of all members of this type, see IInterior Members.
[Visual Basic] Public Interface IInterior [C#] public interface IInterior [C++] public __gc __interface IInterior [JScript] public interface IInterior
Use the Interior property to return the IInterior interface.
This example adds a crisscross pattern to the interior of cell A1 on worksheet one.
[C#]
book.Worksheets[1].Range["A1"].Interior.Pattern = XlPattern.xlPatternCrissCross;
[Visual Basic]
book.Worksheets(1).Range("A1").Interior.Pattern = XlPattern.xlPatternCrissCross
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1"]->Interior->Pattern = XlPattern::xlPatternCrissCross;
This example set the fill of cells C5:F10 to solid yellow
[C#]
IInterior interior = book.Worksheets[1].Range["C5:F10"].Interior;
interior.Pattern = XlPattern.xlSolid;
interior.Color = Color.Yellow;
[Visual Basic]
Dim interior As IInterior = book.Worksheets(1).Range("C5:F10").Interior
interior.Pattern = XlPattern.xlSolid
interior.Color = Color.Yellow
[C++]
IInterior* interior = book->Worksheets->Item[1]->Range->Item[S"C5:F10"]->Interior;
interior->Pattern = XlPattern::xlSolid;
interior->Color = Color::Yellow;
Namespace: NativeExcel
Assembly: NativeExcel (in NativeExcel.dll)
IInterior Members | NativeExcel Namespace | IRange.Interior Property