Skip to content

DoPropExchange Method

Description

Exchanges layout and state information to/from a PropExchange object.

Syntax

Public Sub DoPropExchange( _
    ByVal [pPX](#) As [PropExchange](XtremeCalendarControl~PropExchange.md) _
)

Parameters

Remarks

The PropExchange object provides a universal solution to save the layout and state of the CommandBars, Docking Pane, TaskPanel, and Grid Controls to a single file or the system registry, with support to write/load directly to/from a file or registry.

Loading Information

A call to DoPropExchange should be made after successfully loading information from a file. This will update the control with the information.

Note: LoadFromFile only loads XML files. The XML string will be stored in the Value property.

To load information from a binary file or the system registry, use the CreateAsBinary and CreateAsRegistry methods, passing in True for the Loading parameter.

Saving Information

A call to DoPropExchange should be made before saving the layout information to the file. This will ensure that the current layout information will be saved.

Note: SaveToFile only saves XML data to XML files. The XML string saved to the file is stored in the Value property.

To save information to a binary file or the system registry, use the CreateAsBinary and CreateAsRegistry methods, passing in False for the Loading parameter, then call DoPropExchange to save the information.

Please see the PropExchange description for more information and a Sample.

See Also

Example


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