FarPoint.Web.Spread 名前空間 > StyleInfo クラス : SameAppearance メソッド |
SameAppearanceメソッドは、2つのStyleInfoオブジェクトの外観設定を比較します。
このメソッドが比較する外観設定は、次のとおりです。
FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo(); FarPoint.Web.Spread.StyleInfo minfo = new FarPoint.Web.Spread.StyleInfo(); FarPoint.Web.Spread.SheetStyleProperty prop; minfo.BackColor = Color.Yellow; info.ForeColor = Color.Red; info.Font.Bold = true; info.Merge(minfo); FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info); bool bol, boll; bol = info.IsPropertySet(FarPoint.Web.Spread.SheetStyleProperty.BackColor); boll = info.SameAppearance(minfo); ListBox1.Items.Add(Convert.ToString(bol)); ListBox1.Items.Add(Convert.ToString(boll));
Dim info As New FarPoint.Web.Spread.StyleInfo() Dim minfo As New FarPoint.Web.Spread.StyleInfo() Dim prop As FarPoint.Web.Spread.SheetStyleProperty minfo.BackColor = Color.Yellow info.ForeColor = Color.Red info.Font.Bold = True info.Merge(minfo) FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info) Dim bol, boll As Boolean bol = info.IsPropertySet(prop.BackColor) boll = info.SameAppearance(minfo) ListBox1.Items.Add(bol) ListBox1.Items.Add(boll)