public Image BackgroundImage {get; set;}
'Declaration
Public Property BackgroundImage As Image
'使用法
Dim instance As DropDownCalendar
Dim value As Image
instance.BackgroundImage = value
value = instance.BackgroundImage
プロパティ値
ドロップダウンウィンドウの背景に表示する画像を表す
System.Drawing.Image。
次のサンプルコードは、ドロップダウンカレンダーに背景画像を追加します。
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