GrapeCity SPREAD for Windows Forms 11.0J
BackgroundImage プロパティ (DropDownCalendar)


ドロップダウンカレンダーに表示される背景画像を取得または設定します。
構文
'Declaration
 
Public Property BackgroundImage As Image
'使用法
 
Dim instance As DropDownCalendar
Dim value As Image
 
instance.BackgroundImage = value
 
value = instance.BackgroundImage
public Image BackgroundImage {get; set;}

プロパティ値

ドロップダウンウィンドウの背景に表示する画像を表すSystem.Drawing.Image
解説
BackgroundImageプロパティは、グラフィック画像をコントロールに配置する場合に使用します。
次のサンプルコードは、ドロップダウンカレンダーに背景画像を追加します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
inputcell.DropDownCalendar.BackgroundImage = System.Drawing.Image.FromFile("C:\\Program Files (x86)\\GrapeCity\\fplogo.png");
inputcell.DropDownCalendar.BackgroundImageLayout = ImageLayout.Stretch;
inputcell.DropDownCalendar.CalendarMargins = new System.Windows.Forms.Padding(5);
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
inputcell.DropDownCalendar.BackgroundImage = System.Drawing.Image.FromFile("C:\Program Files (x86)\GrapeCity\fplogo.png")
inputcell.DropDownCalendar.BackgroundImageLayout = ImageLayout.Stretch
inputcell.DropDownCalendar.CalendarMargins = New System.Windows.Forms.Padding(5)
FpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.