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


Glossary Item Box

Gets or sets the text to place in the control when watermarked.

Syntax

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

Property Value

String containing the text of the watermark

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 BasicCopy 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 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.