Skip to main content

TdxRibbonSkinSelector.LoadFromStream(TStream,string,string) Method

Loads one or multiple skins from a stream.

Declaration

procedure LoadFromStream(AStream: TStream; const ASkinName: string = ''; const APaletteName: string = '');

Parameters

Name Type Description
AStream TStream

The source stream with one or multiple skins.

ASkinName string

Optional. The target skin name in the source stream passed as the AStream parameter.

If this parameter is omitted, the procedure loads all skins and corresponding vector skin palettes from the source stream starting the current stream object’s position.

APaletteName string

Optional. The target palette name for the vector skin whose name is passed as the ASkinName parameter.

If this parameter is omitted, the procedure loads all palettes for the target vector skin from the source file.

Note

This parameter is ignored if the target skin is bitmap-based.

Remarks

Call the LoadFromStream procedure to clear the list of skins available in the Ribbon Skin Selector and repopulate it with skins from a stream. A LoadFromStream procedure call raises one OnAddSkin event per every loaded skin.

See Also