次のコードでは、イメージ型セルにGIF形式のアニメーションを表示します。
Imports GrapeCity.Win.MultiRow
Dim ImageCell1 As New ImageCell()
' アニメーションを有効に設定
ImageCell1.SupportsAnimation = True
' アニメーションGIFファイルを設定
ImageCell1.Value = New Bitmap("animation.gif")
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {ImageCell1})
GcMultiRow1.RowCount = 3
using GrapeCity.Win.MultiRow;
ImageCell imageCell1 = new ImageCell();
// アニメーションを有効に設定
imageCell1.SupportsAnimation = true;
// アニメーションGIFファイルを設定
imageCell1.Value = new Bitmap(@"animation.gif");
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { imageCell1 });
gcMultiRow1.RowCount = 3;