FarPoint.Web.Spread.Model 名前空間 > INamedStyleSupport インタフェース : GetDirectAltRowName メソッド |
指定した交互行インデックスのスタイル名を含むString。指定した交互行インデックスに名前付きスタイルが割り当てられていない場合は空の文字列。
FarPoint.Web.Spread.Model.INamedStyleSupport ins; FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle("StyleHeaders"); ns.BackColor = Color.LightBlue; FpSpread1.NamedStyles.Add(ns); FpSpread1.ActiveSheetView.ColumnHeader.RowCount = 5; ins = (FarPoint.Web.Spread.Model.INamedStyleSupport)FpSpread1.ActiveSheetView.ColumnHeaderStyleModel; ins.SetDirectAltRowName(1, "StyleHeaders"); Response.Write("The name of the style used to change the color in the headers is " + ins.GetDirectAltRowName(1).ToString());
Dim ins As FarPoint.Web.Spread.Model.INamedStyleSupport Dim ns As New FarPoint.Web.Spread.NamedStyle("StyleHeaders") ns.BackColor = Color.LightBlue FpSpread1.NamedStyles.Add(ns) FpSpread1.ActiveSheetView.ColumnHeader.RowCount = 5 ins = FpSpread1.ActiveSheetView.ColumnHeaderStyleModel ins.SetDirectAltRowName(1, "StyleHeaders") Response.Write("The name of the style used to change the color in the headers is " & ins.GetDirectAltRowName(1).ToString())