Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets definitions for column and row formatting that are used in a datasheet view.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(FixedId := "viewformatdefinitions", Type := ClientCallableConstraintType.Custom, _
Value := "It MUST be null or be an XML fragment that conforms to a ViewFormatDefinitions as specified by [MS-WSSCAML].")> _
Public Property Formats As String
Get
Set
'Usage
Dim instance As SPView
Dim value As String
value = instance.Formats
instance.Formats = value
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(FixedId = "viewformatdefinitions", Type = ClientCallableConstraintType.Custom,
Value = "It MUST be null or be an XML fragment that conforms to a ViewFormatDefinitions as specified by [MS-WSSCAML].")]
public string Formats { get; set; }
Property Value
Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the descriptions of column and row formatting.
Remarks
The Formats property corresponds to the CAML Formats element and contains a string like the following:
<FormatDef Type="RowHeight" Value="67" />
<Format Name="Attachments">
<FormatDef Type="ColWidth" Value="75" />
</Format>
<Format Name="LinkTitle">
<FormatDef Type="WrapText" Value="1" />
<FormatDef Type="ColWidth" Value="236" />
</Format>