Export (0) Print
Expand All

BaseTextField.CssClass property

Gets or sets the styling class in a cascading style sheet (CSS) file that controls the font family, font size, and possibly other aspects of how the text of the field is rendered.

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

public override string CssClass { get; set; }

Property value

Type: System.String
A String that represents the name of the CSS class.

The default implementation sets CssClass to "ms-input" when DisplaySize is greater than 0; otherwise it is set to "ms-long". Both of these CSS classes are defined in a CSS file in one of the subfolders under %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE. If no customized themes have been created for the Windows SharePoint Services 3.0 deployment, the CSS file used is CORE.CSS in ...\TEMPLATE\LAYOUTS\1033\STYLES.

Community Additions

Show:
© 2014 Microsoft