PowerTools SPREAD for ASP.NET 8.0J
SetDirectInfo メソッド (ISheetStyleModel)

モデル内のセルに対する行インデックス。列全体またはモデル デフォルトを指定する場合は -1 を使用します。
モデル内のセルに対する列インデックス。行全体またはデフォルト モデルを指定する場合は -1 を使用します。
スタイル セット(StyleInfo オブジェクト)
指定したセル、列、行、またはモデルデフォルトの直接スタイルを 設定します。
構文
'Declaration
 
Sub SetDirectInfo( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal info As StyleInfo _
) 
void SetDirectInfo( 
   int row,
   int column,
   StyleInfo info
)

パラメータ

row
モデル内のセルに対する行インデックス。列全体またはモデル デフォルトを指定する場合は -1 を使用します。
column
モデル内のセルに対する列インデックス。行全体またはデフォルト モデルを指定する場合は -1 を使用します。
info
スタイル セット(StyleInfo オブジェクト)
FarPoint.Web.Spread.Model.ISheetStyleModel iss;
iss = (FarPoint.Web.Spread.Model.ISheetStyleModel)FpSpread1.ActiveSheetView.StyleModel;
iss.AltRowCount = 2;
Dim si As New FarPoint.Web.Spread.StyleInfo;
si.BackColor = Color.Yellow;
iss.SetDirectAltRowInfo(1, si);
iss.SetDirectInfo(1, 1, si)
FarPoint.Web.Spread.StyleInfo ret = iss.GetDirectInfo(1, 1, null);
string msg = "The background color of the style is " + si.BackColor.ToString();
Response.Write("<script language='javascript'>alert('" + msg + "')</script>");
Dim iss As FarPoint.Web.Spread.Model.ISheetStyleModel
iss = FpSpread1.ActiveSheetView.StyleModel
iss.AltRowCount = 2
Dim si As New FarPoint.Web.Spread.StyleInfo
si.BackColor = Color.Yellow
iss.SetDirectAltRowInfo(1, si)
iss.SetDirectInfo(1, 1, si)
Dim ret As FarPoint.Web.Spread.StyleInfo = iss.GetDirectInfo(1, 1, Nothing)
Dim msg As String = "The background color of the style is " + si.BackColor.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

ISheetStyleModel インタフェース
ISheetStyleModel メンバ

 

 


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