Share via


SPMenuField.HiddenMenuItemIdsFields property

Gets or sets a comma-separated list of field names to be used in the HiddenMenuItemIds property of the underlying Menu control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property HiddenMenuItemIdsFields As String
    Get
    Set
'Usage
Dim instance As SPMenuField
Dim value As String

value = instance.HiddenMenuItemIdsFields

instance.HiddenMenuItemIdsFields = value
public string HiddenMenuItemIdsFields { get; set; }

Property value

Type: System.String
The list of field names.

Remarks

If the value of a field contains more than one menu item identifier, they are separated by commas. If more than one field name is specified, the values of these fields are concatenated with comma separators.

Values of various fields on the data item are as follows:

  • Field Name

  • Name

  • File Size

  • Hidden1

  • Hidden2

If the value of this property is set to "Hidden1", the underlying Menu instance has its HiddenMenuItemIds property set to "Open,CheckOut". If the value of this property is set to "Hidden1,Disable2", the underlying Menu instance has its HiddenMenuItemIds property set to "Open,CheckOut,CheckIn,UndoCheckOut,Properties". Note the additional comma that is inserted between “CheckOut” and “CheckIn”.

See also

Reference

SPMenuField class

SPMenuField members

Microsoft.SharePoint.WebControls namespace