'Declaration Public Overridable Property Width As Integer
'Usage Dim instance As ContextMenu Dim value As Integer instance.Width = value value = instance.Width
public virtual int Width {get; set;}
'Declaration Public Overridable Property Width As Integer
'Usage Dim instance As ContextMenu Dim value As Integer instance.Width = value value = instance.Width
public virtual int Width {get; set;}
FpSpread1.EnableContextMenu = true; FarPoint.Web.Spread.ContextMenu rowHeaderContextMenu = new FarPoint.Web.Spread.ContextMenu(); rowHeaderContextMenu.Type = FarPoint.Web.Spread.ContextMenuType.RowHeader; rowHeaderContextMenu.Width = 150; FarPoint.Web.Spread.MenuItem rowHeaderItem = new FarPoint.Web.Spread.MenuItem("RowHeader item 1"); rowHeaderItem.ChildItems.Add(new FarPoint.Web.Spread.MenuItem("Child item 1")); rowHeaderItem.ChildItems.Add(new FarPoint.Web.Spread.MenuItem("Child item 2")); rowHeaderItem.ChildItems[1].Visible = true; rowHeaderContextMenu.Items.Add(rowHeaderItem); FpSpread1.ContextMenus.Add(rowHeaderContextMenu);
FpSpread1.EnableContextMenu = True 'If the RowHeader context menu has not been added, add it here Dim rowHeaderContextMenu As New FarPoint.Web.Spread.ContextMenu() rowHeaderContextMenu.Type = FarPoint.Web.Spread.ContextMenuType.RowHeader rowHeaderContextMenu.Width = 150 Dim rowHeaderItem As New FarPoint.Web.Spread.MenuItem("RowHeader item 1") rowHeaderItem.ChildItems.Add(New FarPoint.Web.Spread.MenuItem("Child item 1")) rowHeaderItem.ChildItems.Add(New FarPoint.Web.Spread.MenuItem("Child item 2")) rowHeaderItem.ChildItems(1).Visible = True rowHeaderContextMenu.Items.Add(rowHeaderItem) FpSpread1.ContextMenus.Add(rowHeaderContextMenu)