Spread for ASP.NET 7.0 Product Documentation
ResetName Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyle Class : ResetName Method


Glossary Item Box

Resets the name of the style to the default (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 to its default setting.
C#Copy Code
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();
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.