Partilhar via


FileField.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 field is rendered.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Property CssClass As String
    Get
    Set
'Usage
Dim instance As FileField
Dim value As String

value = instance.CssClass

instance.CssClass = value
public override string CssClass { get; set; }

Property Value

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

Remarks

If CssClass has not been set to something else, this override returns "ms-long" when the current list item is a folder. Otherwise, it returns "ms-input". Both of these values are defined in a CSS file in one of the subfolders under %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE. If no customized themes have been created for the SharePoint deployment, the CSS file used is CORE.CSS in ...\TEMPLATE\LAYOUTS\1033\STYLES.

See Also

Reference

FileField Class

FileField Members

Microsoft.SharePoint.WebControls Namespace