PowerTools SPREAD for ASP.NET 8.0J
DateTimeFormat プロパティ (GeneralCellType)

日付と時刻の表示書式を定義するDateTimeFormatInfoを取得または設定します。
構文
'Declaration
 
Public Overridable Property DateTimeFormat As DateTimeFormatInfo
public virtual DateTimeFormatInfo DateTimeFormat {get; set;}

プロパティ値

日付時刻値を書式設定するための情報を含むDateTimeFormatInfoオブジェクト
<style>.CssStyle1 
{
    FONT: 700 12pt verdana; COLOR: yellow
}
</style>

System.Globalization.DateTimeFormatInfo dtf = new System.Globalization.DateTimeFormatInfo();
dtf.LongDatePattern = "D";
dtf.ShortDatePattern = "M/d/yyyy";
FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
g.CssClass = "CssStyle1";
g.DateTimeFormat = dtf;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
<style>.CssStyle1 
{
     FONT: 700 12pt verdana; COLOR: yellow
}
</style>

Dim dtf As New System.Globalization.DateTimeFormatInfo
dtf.LongDatePattern = "D"
dtf.ShortDatePattern = "M/d/yyyy"
Dim g As New FarPoint.Web.Spread.GeneralCellType
g.CssClass = "CssStyle1"
g.DateTimeFormat = dtf
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g
参照

GeneralCellType クラス
GeneralCellType メンバ

 

 


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