Compartilhar via


SPFieldNumber Class

The SPFieldNumber class represents a field for numbers.

System.Object

   Microsoft.SharePoint.SPField

      Microsoft.SharePoint.SPFieldNumber

Public Properties

The following table shows the public properties of the SPFieldNumber class, the data type of each property, and a brief description of each.

Name Data Type Description
DisplayFormat Microsoft.SharePoint.SPNumberFormatTypes Gets or sets the number of decimal places to use in displaying the field.
MaximumValue System.Double Gets or sets a maximum value for the field.
MinimumValue System.Double Gets or sets a minimum value for the field.
ShowAsPercentage Boolean Gets or sets a Boolean value that specifies whether the field is rendered as a percentage.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Remarks

Setting properties of the SPFieldNumber class requires that the Update method be called for changes to take effect in the database.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security