PowerTools SPREAD for Windows Forms 8.0J
ResetProperty メソッド (ISheetAxisModel)


行または列のインデックス
リセットするプロパティ
指定したSheetAxisModelプロパティをデフォルト値にリセットします。
構文
'Declaration
 
Sub ResetProperty( _
   ByVal index As Integer, _
   ByVal prop As SheetAxisProperty _
) 
'使用法
 
Dim instance As ISheetAxisModel
Dim index As Integer
Dim prop As SheetAxisProperty
 
instance.ResetProperty(index, prop)
void ResetProperty( 
   int index,
   SheetAxisProperty prop
)

パラメータ

index
行または列のインデックス
prop
リセットするプロパティ
次のサンプルコードは、Sizeプロパティが設定されているかどうかを返し、それをリセットします。
FarPoint.Win.Spread.Model.ISheetAxisModel isa;
DialogResult dlg;
bool b;
isa = (FarPoint.Win.Spread.Model.ISheetAxisModel)fpSpread1.ActiveSheet.Models.ColumnAxis;
isa.SetSize(1, 120);
b = isa.IsPropertySet(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size);
label1.Text = "Is the size property set = " + b.ToString();
dlg = MessageBox.Show("Do you want to reset the size??", "ResetProperty", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
bool b1;
isa.ResetProperty(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size);
b1 = isa.IsPropertySet(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size);
label1.Text = "Is the size property set = " + b1.ToString();
}
Dim isa As FarPoint.Win.Spread.Model.ISheetAxisModel
Dim dlg As DialogResult
Dim b As Boolean
isa = FpSpread1.ActiveSheet.Models.ColumnAxis
isa.SetSize(1, 120)
b = isa.IsPropertySet(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size)
Label1.Text = "Is the size property set = " & b.ToString()
dlg = MessageBox.Show("Do you want to reset the size??", "ResetProperty", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
Dim b1 As Boolean
isa.ResetProperty(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size)
b1 = isa.IsPropertySet(1, FarPoint.Win.Spread.Model.SheetAxisProperty.Size)
Label1.Text = "Is the size property set = " & b1.ToString()
End If
参照

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

 

 


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