PowerTools SPREAD for ASP.NET 8.0J
WatermarkCssClass プロパティ

ウォーターマーク状態のときにコントロールに適用するCSSクラスを取得または設定します。
構文
'Declaration
 
Public Property WatermarkCssClass As String
public string WatermarkCssClass {get; set;}

プロパティ値

CSSクラスの名前を含むString
次のサンプルコードは、ウォーターマークセル型を作成します。
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;
}
参照

TextBoxWatermarkCellType クラス
TextBoxWatermarkCellType メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.