Excel for WPF/Silverlight
XLPictureShape コンストラクタ(WriteableBitmap,Int32,Int32)
使用例 

C1.WPF.Excel.4.5.2 アセンブリ > C1.WPF.Excel 名前空間 > XLPictureShape クラス > XLPictureShape コンストラクタ : XLPictureShape コンストラクタ(WriteableBitmap,Int32,Int32)
新しい XLPictureShapeに格納されている画像。
セルに対する新しい図形の水平位置(twips 単位)。
セルに対する新しい図形の垂直位置(twips 単位)。
XLPictureShapeの新しいインスタンスを初期化します。
シンタックス
'宣言
 
Public Function New( _
   ByVal img As System.Windows.Media.Imaging.WriteableBitmap, _
   ByVal x As System.Integer, _
   ByVal y As System.Integer _
)
public XLPictureShape( 
   System.Windows.Media.Imaging.WriteableBitmap img,
   System.int x,
   System.int y
)

パラメータ

img
新しい XLPictureShapeに格納されている画像。
x
セルに対する新しい図形の水平位置(twips 単位)。
y
セルに対する新しい図形の垂直位置(twips 単位)。
使用例
下のコードはセルに画像を追加します。画像は元のサイズでレンダリングされ、セルの左上隅から 30 twips のインデントが設定されます。
// シートとセルを取得します
XLSheet sheet = c1ExcelBook1.Sheets[0];
XLCell cell = sheet[row, col];
          
// XLPictureShape を作成します
XLPictureShape pic = new XLPictureShape(image, 30, 30);
          
// XLPictureShape をセルに割り当てます
cell.Value = pic;
参照

XLPictureShape クラス
XLPictureShape メンバ
オーバーロード一覧