Gets or sets the CSS class to apply to the control when watermarked.
Syntax
Visual Basic (Declaration) | |
---|
Public Property WatermarkCssClass As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As TextBoxWatermarkCellType
Dim value As String
instance.WatermarkCssClass = value
value = instance.WatermarkCssClass |
C# | |
---|
public string WatermarkCssClass {get; set;} |
Property Value
String containing the name of the CSS class
Example
This example creates a watermark cell type.
C# | Copy Code |
---|
FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType tb = new FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType();
tb.WatermarkText = "Required";
tb.WatermarkCssClass = "watermarked";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = tb;
.watermarked {
height:18px;
width:150px;
padding:2px 0 0 2px;
border:1px solid #BEBEBE;
background-color:#F0F8FF;
color:gray;
}
|
Visual Basic | Copy Code |
---|
Dim tb As New FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType
tb.WatermarkText = "Required"
tb.WatermarkCssClass = "watermarked"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = tb
.watermarked {
height:18px;
width:150px;
padding:2px 0 0 2px;
border:1px solid #BEBEBE;
background-color:#F0F8FF;
color:gray;
} |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also