Spread for ASP.NET 8.0 Product Documentation
TextBoxWatermarkCellType Constructor
Example 


Overload List
OverloadDescription
TextBoxWatermarkCellType Constructor()Creates a new ASP.NET AJAX extender text box watermark cell.  
TextBoxWatermarkCellType Constructor(String)Creates a new ASP.NET AJAX extender text box watermark cell.  
Example
This example creates a watermark cell type.
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;
}
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 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

Reference

TextBoxWatermarkCellType Class
TextBoxWatermarkCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.