Compartilhar via


ViewStyle Element

The ViewStyle element contains the definition of a view style for a list.

Syntax

<ViewStyle
  BaseType = "Integer" | "Text"
  DisplayName = "Text"
  ID = "Counter"
  Type = "Integer">
</ViewStyle>

Attributes

Name Description
BaseType Optional. Specifies the base type of the list. The BaseType attribute can be set to Integer, which stores values as integers, or to Text (default), which stores values as text.
DisplayName Required Text. Specifies the display name of the view style.
ID Required Counter. Specifies the ID that uniquely identifies the view style.
Type Optional Integer. Specifies the list definition type.

Element Relationships

Parent Elements Child Elements
View GroupByFooter , GroupByHeader, PagedRecurrenceRowset, PagedRowset, RowLimit, ViewBidiHeader, ViewBody, ViewEmpty, ViewFields, ViewFooter, ViewHeader

Example

The following example outlines the sections contained within the Boxed view style of the VIEWSTYLES.XML file.

<ViewStyle ID="13" DisplayName="Boxed" BaseType="0">
   <ViewFields />
   <GroupByHeader>
   .
   .
   .
   </GroupByHeader>
   <GroupByFooter>
   .
   .
   .
   </GroupByFooter>
   <ViewHeader ExpandXML="TRUE">
   .
   .
   .
   </ViewHeader>
   <ViewBidiHeader ExpandXML="TRUE">
   .
   .
   .
   </ViewBidiHeader>
   <ViewBody ExpandXML="TRUE">
   .
   .
   .
   </ViewBody>
   <ViewFooter ExpandXML="TRUE">
   .
   .
   .
   </ViewFooter>
   <PagedRowset>
   .
   .
   .
   </PagedRowset>
   <PagedRecurrenceRowset>
   .
   .
   .
   </PagedRecurrenceRowset>
   <RowLimit Paged="TRUE">100</RowLimit>
   <ViewEmpty>
   .
   .
   .
   </ViewEmpty>
   .
   .
   .
</ViewStyle>