Compartilhar via


SPMobileItemFieldIterator.IsVisibleField Method

Gets a value that indicates whether the specified SPField is visible on the current mobile form or mobile list view page.

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

Syntax

'Declaration
Protected Overridable Function IsVisibleField ( _
    field As SPField _
) As Boolean
'Usage
Dim field As SPField
Dim returnValue As Boolean

returnValue = Me.IsVisibleField(field)
protected virtual bool IsVisibleField(
    SPField field
)

Parameters

Return Value

Type: System.Boolean
Returns true if the field is visible on the current form or page; otherwise, false.

Remarks

In SharePoint Foundation, several conditions can cause a field to be invisible on a form or page, such as Hidden being true or the field type being Calculated.

The visibility of the field is partly relative to the page type. For example, if ShowInEditForm is false, IsVisibleField is false when the current page is an Edit form. Similar points apply to the ShowInNewForm and ShowInDisplayForm properties.

See Also

Reference

SPMobileItemFieldIterator Class

SPMobileItemFieldIterator Members

Microsoft.SharePoint.MobileControls Namespace