BCGControlBar Library for .NET
SaveState Method (RibbonControl)




Specifies the full name of the file containing persistent state.

Saves persistent state. The state includes customized state of QAT and QAT position.

The designer automatically generates code responsible for save and load state, but initially it's commented out. Just locate OnLoadForm and OnFormClosing overrides in the form's code and remove the comments and if you wish to enable automatic state handling.

Syntax
'Declaration
 
Public Overridable Sub SaveState( _
   ByVal strFile As String _
) 
'Usage
 
Dim instance As RibbonControl
Dim strFile As String
 
instance.SaveState(strFile)
public virtual void SaveState( 
   string strFile
)
public: virtual void SaveState( 
   string* strFile
) 
public:
virtual void SaveState( 
   String^ strFile
) 

Parameters

strFile
Specifies the full name of the file containing persistent state.
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

Reference

RibbonControl Class
RibbonControl Members

Send Feedback