Click or drag to resize

DiagramElementParamHelperSetSaveLoadHandlersT Method

To set the handler of saving/loading for the diagram element parameter.

Namespace:  StockSharp.Xaml.Diagram
Assembly:  StockSharp.Xaml.Diagram (in StockSharp.Xaml.Diagram.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static DiagramElementParam<T> SetSaveLoadHandlers<T>(
	this DiagramElementParam<T> param,
	Func<T, SettingsStorage> save,
	Func<SettingsStorage, T> load
)

Parameters

param
Type: StockSharp.Xaml.DiagramDiagramElementParamT
The diagram element parameter.
save
Type: SystemFuncT, SettingsStorage
The handler for the parameter saving.
load
Type: SystemFuncSettingsStorage, T
The handler for the parameter loading.

Type Parameters

T
The diagram element parameter type.

Return Value

Type: DiagramElementParamT
The diagram element parameter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DiagramElementParamT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also