View.Formats 属性

Gets or sets a value that specifies the column and row formatting for the list view.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Property Formats As String
    Get
    Set
用法
Dim instance As View
Dim value As String

value = instance.Formats

instance.Formats = value
public string Formats { get; set; }

属性值

类型:System.String
Returns a String instance representing the column and row formatting for the list view.

备注

It must be 空引用(无 在 Visual Basic 中) or an XML fragment that conforms to ViewFormatDefinitions.

The ListTemplateDefinition type specifies a template definition that is used to create new lists of a particular type.

Schema

<xs:complexType name="ListTemplateDefinition">
    <xs:attribute name="AllowDeletion" type="TRUEFALSE" default="TRUE" />
    <xs:attribute name="AllowEveryoneViewItems" type="TRUEFALSE" default="FALSE" />  
    <xs:attribute name="AlwaysIncludeContent" type="TRUEFALSE" default="FALSE" />  
    <xs:attribute name="BaseType" type="ListTemplateBaseType" use="required" />
    <xs:attribute name="CacheSchema" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="Catalog" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="Category" type="ListTemplateCategoryType" />
    <xs:attribute name="Description" type="xs:string" />
    <xs:attribute name="DisableAttachments" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="DisallowContentTypes" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="DisplayName" type="xs:string" />
    <xs:attribute name="DocumentTemplate" type="xs:int" /> <xs:attribute name="DontSaveInTemplate" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="DraftVersionVisibility" type="xs:int" default="0" />
    <xs:attribute name="EditPage" type="xs:string" />
    <xs:attribute name="EmailAssignTo" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="EnableContentTypes" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="EnableMinorVersions" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="EnableThumbnails" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="FeatureId" type="UniqueIdentifierWithOrWithoutBracesWithOrWithoutDashes" />
    <xs:attribute name="FolderCreation" type="TRUEFALSE" default="TRUE" />
    <xs:attribute name="ForceCheckout" type="TRUEFALSE" default="FALSE" /> 
    <xs:attribute name="Hidden" type="TRUEFALSE" default="FALSE"/>
    <xs:attribute name="HiddenList" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="Image" type="RelativeUrl" />
    <xs:attribute name="MajorVersionLimit" type="IntNonNegative" use="optional" />
    <xs:attribute name="MajorWithMinorVersionsLimit" type="IntNonNegative" use="optional" />
    <xs:attribute name="ModeratedList" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="MultipleMtgDataList" type="TRUEFALSE" default="TRUE" />
    <xs:attribute name="MustSaveRootFiles" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="Name" type="xs:string" />
    <xs:attribute name="NewPage" type="xs:string" />
    <xs:attribute name="NoCrawl" type="TRUEFALSE" default="FALSE"  />
    <xs:attribute name="OnQuickLaunch" type="TRUEFALSE" />
    <xs:attribute name="OrderedList" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="Path" type="xs:string " />
    <xs:attribute name="PrivateList" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="PublicList" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="RootWebOnly" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="SecurityBits" type="xs:string" />
    <xs:attribute name="SetupPath" type="RelativeFilePath" />
    <xs:attribute name="Sequence" type="xs:int" />
    <xs:attribute name="SyncType" type="xs:string" />
    <xs:attribute name="ThumbnailSize" type="IntNonNegative" default="0" />
    <xs:attribute name="Type" type="xs:int" use="required"/>
    <xs:attribute name="Unique" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="UseRootFolderForNavigation" type="TRUEFALSE" />
    <xs:attribute name="VersioningEnabled" type="TRUEFALSE" default="FALSE" />
    <xs:attribute name="WebImageHeight" type="IntNonNegative"   default="0" />
    <xs:attribute name="WebImageWidth" type="IntNonNegative"   default="0" />
  </xs:complexType>

另请参阅

引用

View 类

View 成员

Microsoft.SharePoint.Client 命名空间