Calendar.CellSpacing Property

 

Gets or sets the amount of space between cells.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

member CellSpacing : int with get, set

Property Value

Type: System.Int32

The amount of space (in pixels) between cells. The default value is 0.

Exception Condition
ArgumentOutOfRangeException

The specified cell spacing is less than -1.

Use this property to control the spacing between individual cells in the calendar. This spacing is applied both vertically and horizontally.

System_CAPS_noteNote

Setting this property to -1 indicates that this property is not set in the rendered table.

The following code example demonstrates how to use the CellSpacing property to space the cells 5 pixels apart.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: