Spread Windows Forms 12.0 Product Documentation
ContextMenuType Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > FilterBarCellType Class : ContextMenuType Property
Gets or sets the type of filter bar context menu.
Syntax
'Declaration
 
Public Property ContextMenuType As FilterBarContextMenuType
'Usage
 
Dim instance As FilterBarCellType
Dim value As FilterBarContextMenuType
 
instance.ContextMenuType = value
 
value = instance.ContextMenuType
public FilterBarContextMenuType ContextMenuType {get; set;}
Example
This example sets the ContextMenuType property.
FarPoint.Win.Spread.CellType.FilterBarCellType fbcell = new FarPoint.Win.Spread.CellType.FilterBarCellType();
fbcell.AutoFormat = true;
fbcell.ContextMenuType = FarPoint.Win.Spread.CellType.FilterBarContextMenuType.DateTime;      
fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
fpSpread1.Sheets[0].FilterBar.Cells[0].CellType = fbcell;
fpSpread1.Sheets[0].FilterBar.Cells[0].BackColor = Color.Aqua;
fpSpread1.Sheets[0].FilterBar.Cells[0].ForeColor = Color.Black;
fpSpread1.Sheets[0].Cells[0, 0].Value = DateTime.Now;
Dim fbcell As New FarPoint.Win.Spread.CellType.FilterBarCellType()
fbcell.AutoFormat = True
fbcell.ContextMenuType = FarPoint.Win.Spread.CellType.FilterBarContextMenuType.DateTime
fpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
fpSpread1.Sheets(0).FilterBar.Cells(0).CellType = fbcell
fpSpread1.Sheets(0).FilterBar.Cells(0).BackColor = Color.Aqua
fpSpread1.Sheets(0).FilterBar.Cells(0).ForeColor = Color.Black
fpSpread1.Sheets(0).Cells(0, 0).Value = DateTime.Now
See Also

Reference

FilterBarCellType Class
FilterBarCellType Members