Resets to the default the name of the style (String.Empty).
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Sub ResetName() |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As NamedStyle
instance.ResetName() |
C# | |
---|
public virtual void ResetName() |
Example
This example resets the name of the style.
C# | Copy Code |
---|
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle();
ns.Font = new Font("Comic Sans Serif", 12);
ns.Name = "StyleHeaders";
ns.Parent = "HeaderDefault";
fpSpread1.NamedStyles.Add(ns);
fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = ns;
DialogResult dlg;
dlg = MessageBox.Show("Do you want to reset the name?", "Reset", MessageBoxButtons.OKCancel);
if (dlg == DialogResult.OK)
{
ns.ResetName();
}
|
Visual Basic | Copy Code |
---|
Dim ns As New FarPoint.Win.Spread.NamedStyle
ns.Font = New Font("Comic Sans Serif", 12)
ns.Name = "StyleHeaders"
ns.Parent = "HeaderDefault"
FpSpread1.NamedStyles.Add(ns)
FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = ns
Dim dlg As DialogResult
dlg = MessageBox.Show("Do you want to reset the name?", "Reset", MessageBoxButtons.OKCancel)
If dlg = DialogResult.OK Then
ns.ResetName()
End If |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also