Expand Minimize

NamedRange.Interior Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets an Interior that represents the interior of the NamedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Interior Interior { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Interior
An Interior that represents the interior of the NamedRange control.

The following code example uses the Borders property to draw double lines for the border of a NamedRange, and it uses the Interior property to color the interior of a NamedRange green.

This example is for a document-level customization.

Microsoft.Office.Tools.Excel.NamedRange bordersRange;
private void SetBordersAndInterior()
{
    bordersRange = this.Controls.AddNamedRange(
        this.Range["B2", "D4"], "namedRange1");
    this.bordersRange.Borders.LineStyle =
        Excel.XlLineStyle.xlDouble;
    this.bordersRange.Interior.Color = 0xFF00;
}

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft