Font.Background Property
Returns or sets the type of background for text used in charts. Can be one of the XlBackground constants.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property Background As Object
Get
Set
'Usage
Dim instance As Font
Dim value As Object
value = instance.Background
instance.Background = value
Object Background { get; set; }
Property Value
Type: System.Object
Remarks
XlBackground can be one of the following constants |
Description of text background |
---|---|
xlBackgroundAutomatic |
Font background will automatically change the background area around the text to a color that best displays the chart text on the color applied to elements under the text |
xlBackgroundOpaque |
Font background will set the font background to black if the text color and fill color underneath the text are very close or the same color, such that the text would not appear |
xlBackgroundTransparent |
Font background is set to transparent so that text background does not change if the text color is close to the color underneath the text |