FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TextCellType Class : CellCssClass Property |
'Declaration Public Property CellCssClass As String
'Usage Dim instance As TextCellType Dim value As String instance.CellCssClass = value value = instance.CellCssClass
public string CellCssClass {get; set;}
<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";
<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"
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional