FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > ISheetStyleModel インタフェース : IsRowUsed メソッド |
'使用法 Dim instance As ISheetStyleModel Dim row As Integer Dim value As Boolean value = instance.IsRowUsed(row)
Boolean:行にスタイル設定が含まれる場合は True、それ以外の場合は False
FarPoint.Win.Spread.Model.ISheetStyleModel ssm; FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("StyleData"); FarPoint.Win.Spread.StyleInfo si; bool b; ssm = (FarPoint.Win.Spread.Model.ISheetStyleModel)fpSpread1.ActiveSheet.Models.Style; ns.BackColor = Color.Yellow; fpSpread1.NamedStyles.Add(ns); ssm.SetDirectInfo(0, 0, ns); b = ssm.IsRowUsed(0); label1.Text = "Does row 0 have a style set = " + b.ToString();
Dim ssm As FarPoint.Win.Spread.Model.ISheetStyleModel Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleData") Dim b As Boolean ssm = FpSpread1.ActiveSheet.Models.Style ns.BackColor = Color.Yellow FpSpread1.NamedStyles.Add(ns) ssm.SetDirectInfo(0, 0, ns) b = ssm.IsRowUsed(0) Label1.Text = "Does row 0 have a style set = " & b.ToString()