Spread Windows Forms 6.0 Product Documentation
NullBackColor Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : NullBackColor Property


Glossary Item Box

Gets or sets the background color of null items on this sheet.

Syntax

Visual Basic (Declaration) 
Public Property NullBackColor As Color
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Color
 
instance.NullBackColor = value
 
value = instance.NullBackColor
C# 
public Color NullBackColor {get; set;}

Example

This example sets the NullBackColor property.
C#Copy Code
fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
fpSpread1.Sheets[0].Cells[1, 1].Value = "test";
fpSpread1.Sheets[0].Cells[1, 0].Value = "test";
fpSpread1.Sheets[0].NullBackColor = Color.Red;
fpSpread1.Sheets[0].NullFont = new Font("Arial", 12);
fpSpread1.Sheets[0].NullForeColor = Color.Black;
fpSpread1.Sheets[0].LockFont = new Font("Comic Sans MS", 12);
fpSpread1.Sheets[0].LockForeColor = Color.Crimson;
fpSpread1.Sheets[0].SelectionFont = new Font("Comic Sans MS", 12);
Visual BasicCopy Code
FpSpread1.Sheets(0).Cells(1, 1).Locked = True
FpSpread1.Sheets(0).Cells(1, 1).Value = "test"
FpSpread1.Sheets(0).Cells(1, 0).Value = "test"
FpSpread1.Sheets(0).NullBackColor = Color.Red
FpSpread1.Sheets(0).NullFont = New Font("Arial", 12)
FpSpread1.Sheets(0).NullForeColor = Color.Black
FpSpread1.Sheets(0).LockFont = New Font("Comic Sans MS", 12)
FpSpread1.Sheets(0).LockForeColor = Color.Crimson
FpSpread1.Sheets(0).SelectionFont = New Font("Comic Sans MS", 12)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.