Table of Contents

TTMSFNCCustomStateManager.SaveToState Method

Saves the current control tree state into the specified state item, replacing its content.

API unit family: TMSFNCStateManager Declaring type: TTMSFNCCustomStateManager

Overloads

Overload 1

Saves the current control tree state into the specified state item, replacing its content.

procedure SaveToState(AState: TTMSFNCStateManagerItem); overload; virtual;

Parameters

Name Description
AState The item to overwrite with the current state.

Overload 2

Saves the current control tree state into the state at the given collection index.

procedure SaveToState(AIndex: Integer); overload; virtual;

Parameters

Name Description
AIndex Zero-based index of the target state item.

Overload 3

Saves the current control tree state into the state with the given name.

procedure SaveToState(AName: string); overload; virtual;

Parameters

Name Description
AName Name of the target state item.