C1.Xaml.Excel アセンブリ > C1.Xaml.Excel 名前空間 : XLPictureShape クラス |
'宣言 Public Class XLPictureShape Inherits XLShape Implements ICloneable
public class XLPictureShape : XLShape, ICloneable
XLPictureShape は、シートに埋め込まれた画像のプロパティを公開するために、汎用の XLShape クラス から派生されています。これらのプロパティには、 実際の Image と、その表示方法に関する情報 (Brightness、Contrast、 クリッピング情報など)が含まれます。
Image オブジェクトを XLCell オブジェクトの Value プロパティに直接割り当てるだけで、セルに画像を追加できます。 この場合、C1XLBook は XLPictureShape を自動的に作成して 初期化します。ただし、この方法は、画像の配置、拡大縮小、およびクリッピングに関する 柔軟性をほとんど提供しません。
より柔軟な方法としては、配置と拡大縮小のパラメータを取るコンストラクタを使用して、 コードで XLPictureShape オブジェクトを作成してから、 この XLPictureShape オブジェクトをセルの Value プロパティに割り当てます。
System.Object
C1.Xaml.Excel.XLShape
C1.Xaml.Excel.XLPictureShape
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2