BCGControlBar Library for .NET
LoadState Method (RibbonControl)




Specifies the full name of the file containing persistent state.

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

Use SaveState  to save the state into XML file.

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 LoadState( _
   ByVal strFile As String _
) 
'Usage
 
Dim instance As RibbonControl
Dim strFile As String
 
instance.LoadState(strFile)
public virtual void LoadState( 
   string strFile
)
public: virtual void LoadState( 
   string* strFile
) 
public:
virtual void LoadState( 
   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