[Overview][Classes][Index] | Reference for unit 'groupresource' (#fcl-res)

# TGroupResource.ItemData

Resource data as an ICO/CUR stream

## Declaration

Source position: groupresource.pp line 57

`public property TGroupResource.ItemData : TStream read GetItemData;`

## Description

This property gives access to resource data in a (ICO or CUR) file-like stream, unlike RawData.

The exact format of the stream (ico or cur) is determined by the descendant class of TGroupResource that is used.

ItemData does not create a copy of RawData so memory usage is generally kept limited.

You can also set a custom stream as the underlying stream for ItemData via SetCustomItemDataStream, much like SetCustomRawDataStream does for RawData. This is useful when you want a TGroupIconResource or TGroupCursorResource to be created from a ico or cur file for which you have a stream.

Remark: | If you need to access RawData after you modified ItemData, be sure to call UpdateRawData first. This isn't needed however when resource is written to a stream, since TResources takes care of it.

## See also

TGroupResource.SetCustomItemDataStream |  | Sets a custom stream as the underlying stream for ItemData
TGroupIconResource |  | Group icon resource type
TGroupCursorResource |  | Group cursor resource type
TAbstractResource.RawData |  | The raw resource data stream
TAbstractResource.UpdateRawData |  | Updates RawData stream.