Spread for ASP.NET 11 Product Documentation
ResetName Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyle Class : ResetName Method
Resets the name of the style to the default (String.Empty).
Syntax
'Declaration
 
Public Overridable Sub ResetName() 
'Usage
 
Dim instance As NamedStyle
 
instance.ResetName()
public virtual void ResetName()
Example
This example resets the name to its default setting.
FarPoint.Web.Spread.NamedStyle parent = new FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeaderDefault");
parent.BackColor = Color.Yellow;
FpSpread1.NamedStyles.Add(parent);
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent;
FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent;

if (IsPostBack)
{
    parent.ResetName();
}
Dim parent As New FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeaderDefault")
parent.BackColor = Color.Yellow
FpSpread1.NamedStyles.Add(parent)
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent
FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent

If IsPostBack Then
    parent.ResetName()
End If
See Also

Reference

NamedStyle Class
NamedStyle Members