GrapeCity MultiRow for Windows Forms 10.0J
アニメーションの表示

イメージ型セル(ImageCell)には、GIF形式のアニメーションを表示できます。GIF形式のアニメーションを有効にするには、ImageCell.SupportsAnimationプロパティにTrueを設定します。

サンプルコード
次のコードでは、イメージ型セルに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;

                            
参照

 

 


© 2008 GrapeCity inc. All rights reserved.