PowerTools SPREAD for Windows Forms 8.0J
AllowResize プロパティ (DropDown)


ユーザーがサイズ変更グリップを使用してドロップダウンウィンドウのサイズを変更できるかどうかを取得または設定します。
構文
'Declaration
 
Public Property AllowResize As Boolean
'使用法
 
Dim instance As DropDown
Dim value As Boolean
 
instance.AllowResize = value
 
value = instance.AllowResize
public bool AllowResize {get; set;}

プロパティ値

bool値。サイズ変更グリップによってドロップダウンウィンドウのサイズを変更できる場合はtrue。それ以外の場合はfalse
次のサンプルコードは、AllowResize プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
datecell.DropDownCalendar.BackColor = Color.Red;
datecell.DropDownCalendar.CalendarDimensions = new Size(3, 1);
datecell.DropDownCalendar.Font = new Font("Arial", 10, FontStyle.Bold);
datecell.DropDown.AllowDrop = true;
datecell.DropDown.AllowResize = true;
datecell.DropDown.AutoDropDown = true;
datecell.DefaultActiveField = datecell.Fields[2];
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
datecell.DropDownCalendar.BackColor = Color.Red
datecell.DropDownCalendar.CalendarDimensions = New Size(3, 1)
datecell.DropDownCalendar.Font = New Font("Arial", 10, FontStyle.Bold)
datecell.DropDown.AllowDrop = True
datecell.DropDown.AllowResize = True
datecell.DropDown.AutoDropDown = True
datecell.DefaultActiveField = datecell.Fields(2)
参照

DropDown クラス
DropDown メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.