Share via


SPFieldText Class

The SPFieldText class represents a field that contains a single line of text.

System.Object

   Microsoft.SharePoint.SPField

      Microsoft.SharePoint.SPFieldText

Public Properties

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

Name Data Type Description
MaxLength Int32 Gets or sets the maximum number of characters that can be typed in the field.

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.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security