Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxSkinsUserSkinLoadFromStreamByIndex(TStream,Integer) Method

Loads a skin from a specified stream by its index.

#Declaration

Delphi
function dxSkinsUserSkinLoadFromStreamByIndex(AStream: TStream; ASkinIndex: Integer = 0): Boolean;

#Parameters

Name Type
AStream TStream
ASkinIndex Integer

#Returns

Type
Boolean

#Remarks

If the skin controller’s SkinName property is set to ‘UserSkin’, you need to provide a skin to be applied by this skin controller. To accomplish this, call the dxSkinsUserSkinLoadFromStreamByIndex or dxSkinsUserSkinLoadFromStream function to load a skin from a stream containing skin data (such as .SKINRES files saved in the Skin Editor).

AStream specifies the source stream (the content of a SKINRES file created in the Skin Editor, and then loaded to AStream).

ASkinIndex specifies the skin index within the storage. If ASkinIndex is not specified the function loads the first skin from the storage.

The dxSkinsUserSkinLoadFromStreamByIndex function returns False, if the specified skin doesn’t exist or it cannot be loaded.

To load a skin from a file, call the dxSkinsUserSkinLoadFromFile or dxSkinsUserSkinLoadFromFileByIndex function.

See Also