Spread Windows Forms 9.0 Product Documentation
ResetProperty Method (ISheetAxisModel)
Example 


Row or column index
Property to reset
Resets the specified SheetAxisModel property to its default value.
Syntax
'Declaration
 
Sub ResetProperty( _
   ByVal index As Integer, _
   ByVal prop As SheetAxisProperty _
) 
'Usage
 
Dim instance As ISheetAxisModel
Dim index As Integer
Dim prop As SheetAxisProperty
 
instance.ResetProperty(index, prop)
void ResetProperty( 
   int index,
   SheetAxisProperty prop
)

Parameters

index
Row or column index
prop
Property to reset
Example
This example returns whether the size property is set and resets it.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ISheetAxisModel Interface
ISheetAxisModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.