Skip to content

LoadStateFromXMLString Method

Description

The LoadStateFromXMLString method loads a Command Bar state from an XML string.

Syntax

Public Sub LoadStateFromXMLString( _
    ByVal [Profile](#) As String, _
    ByVal [state](#) As String, _
    Optional ByVal [Options](#) As [StateOptions](XtremeCommandBars~StateOptions.md) = 0 _
)

Parameters

  • Profile
    Name of the layout to load from the XML string. If the XML string was created in the Designer Studio, the default profile name is "DesignerFile".
    IMPORTANT: When saving an XML string, the Profile name MUST be "DesignerFile" if you want to edit the XML file in the Designer Studio.

  • state
    XML string that contains a CommandBar layout to load.

  • Options
    Pointer to a StateOptions object that contains information that specifies how to update the CommandBars. By default, this is zero.

Remarks

The XML file can be created in the Designer Studio or with the SaveStateToString method. StateOptions can be used to specify how the CommandBars are updated.

See Also

Example

StateOptions Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.