Spread Windows Forms 7.0 Product Documentation
DoubleClickTextToDropDown Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : DoubleClickTextToDropDown Property


Glossary Item Box

Gets or sets whether to display the combo box list when double-clicking the text area.

Syntax

Visual Basic (Declaration) 
Public Property DoubleClickTextToDropDown As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value As Boolean
 
instance.DoubleClickTextToDropDown = value
 
value = instance.DoubleClickTextToDropDown
C# 
public bool DoubleClickTextToDropDown {get; set;}

Remarks

Setting the DoubleClickTextToDropDown property to true only has an effect if the DropDownOptions eumeration is set to button.

Example

This example sets the DoubleClickTextToDropDown property.
C#Copy Code
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;
VB.NETCopy Code
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

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.