Spread for ASP.NET 7.0 Product Documentation
CellCssClass Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TextCellType Class : CellCssClass Property


Glossary Item Box

Gets or set the CSS class name for the cell which contains this cell type.

Syntax

Visual Basic (Declaration) 
Public Property CellCssClass As String
Visual Basic (Usage)Copy Code
Dim instance As TextCellType
Dim value As String
 
instance.CellCssClass = value
 
value = instance.CellCssClass
C# 
public string CellCssClass {get; set;}

Remarks

This property applies the CSS style to the table cell when the ShowEditor property is set to true.

Example

This example sets the CellCssClass property.
C#Copy Code
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    .TextCellTypeCssClass
    {
    background-color: beige;
    border: solid 5px orange;
    vertical-align:top;
    }
    .TextCellCssClass
    {
    background-color:Black;
    color: Lime;
    border: dotted 5px blue;
    }
    </style>
</head>

FarPoint.Web.Spread.TextCellType test = new FarPoint.Web.Spread.TextCellType();
test.ShowEditor = True;
test.CssClass = "TextCellCssClass";
test.CellCssClass = "TextCellTypeCssClass";
FpSpread1.Sheets[0].Cells[0, 0].CellType = test;
FpSpread1.Sheets[0].Cells[0, 0].Value = "Text Cell Type";
Visual BasicCopy Code
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    .TextCellTypeCssClass
    {
    background-color: beige;
    border: solid 5px orange;
    vertical-align:top;
    }
    .TextCellCssClass
    {
    background-color:Black;
    color: Lime;
    border: dotted 5px blue;
    }
    </style>
</head>

Dim test As New FarPoint.Web.Spread.TextCellType
test.ShowEditor = True
test.CssClass = "TextCellCssClass"
test.CellCssClass = "TextCellTypeCssClass"
FpSpread1.Sheets(0).Cells(0, 0).CellType = test
FpSpread1.Sheets(0).Cells(0, 0).Value = "Text Cell Type"

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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