Spread Windows Forms 11.0 Product Documentation
DoubleClickTextToDropDown Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : DoubleClickTextToDropDown Property
Gets or sets whether to display the combo box list when double-clicking the text area.
Syntax
'Declaration
 
Public Property DoubleClickTextToDropDown As Boolean
'Usage
 
Dim instance As ComboBoxCellType
Dim value As Boolean
 
instance.DoubleClickTextToDropDown = value
 
value = instance.DoubleClickTextToDropDown
public bool DoubleClickTextToDropDown {get; set;}
Remarks
Setting the DoubleClickTextToDropDown property to true only has an effect if the DropDownOptions enumeration is set to button.
Example
This example sets the DoubleClickTextToDropDown property.
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cb.Items = new string[] { "Item 1", "Item 2" };
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button;
cb.Editable = false;
cb.DropDownWhenStartEditing = true;
cb.DoubleClickTextToDropDown = true;
cb.StopEditingAfterDropDownItemSelected = true; 
fpSpread1.ActiveSheet.Cells[1, 1].CellType = cb;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cb.Items = New String() {"Item 1", "Item 2"}
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button
cb.Editable = False
cb.DropDownWhenStartEditing = True
cb.DoubleClickTextToDropDown = True
cb.StopEditingAfterDropDownItemSelected = True
FpSpread1.ActiveSheet.Cells(1, 1).CellType = cb
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members