SPView members
Represents a view of the data that is contained in a list on a SharePoint site.
The SPView type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SPView | Initializes a new instance of the SPView class. |
Top
Properties
Name | Description | |
---|---|---|
Aggregations | Gets or sets field references for one or more aggregate, or total, columns used in a view. | |
AggregationsStatus | Gets or sets a string that specifies whether aggregate, or total, columns are used in the view. | |
BaseViewID | Gets the ID of the base view for the view. | |
CalendarSettings | Gets or sets string data for calendar-specific configuration settings. | |
ContentTypeId | Gets or sets the ID of the content type with which the view is associated so that the view is available only on folders of this content type. | |
CssStyleSheet | Gets the file name of the cascading style sheet (CSS) that is specified by the CssStyleSheet attribute of the view schema. | |
DefaultView | Gets or sets a Boolean value that specifies whether the view is the default view. | |
DefaultViewForContentType | Gets or sets a Boolean value that specifies whether the view is the default view for the associated content type. | |
EditorModified | Gets a Boolean value that indicates whether the view was modified in an HTML editor. | |
Formats | Gets or sets definitions for column and row formatting that are used in a datasheet view. | |
GroupByFooter | Gets or sets the definition of the Group By footer that is used in the view. | |
GroupByHeader | Gets or sets the definition of the Group By header used in the view. | |
Hidden | Gets or sets a Boolean value that specifies whether the view is hidden. | |
HtmlSchemaXml | Gets the entire schema for the view. | |
ID | Gets the GUID that identifies the view. | |
ImageUrl | Gets the URL of the image that is associated with the list view. | |
IncludeRootFolder | Gets or sets a Boolean value that specifies whether the root folder is returned in the list view. | |
InlineEdit | Gets or sets a string that specifies whether the view is in inline edit mode. | |
Joins | Gets or sets the Joins element section of the XML that defines the view. | |
JS | JS - an Attribute of the view, specifies the inline javascript used for the view. | |
JSLink | JSLink - an Attribute of the view, specifies the Javascript files used for the view. | |
Level | Gets the level of publication for documents that are displayed in the view. | |
Method | Gets or sets the view method for the list view. | |
MobileDefaultView | Gets or sets a Boolean value that specifies whether the view is the default view for a mobile device. | |
MobileItemLimit | Gets or sets the maximum number of list items to show in the summary version of a mobile adapter for a list view Web Part (ListViewWebPartMobileAdapter or XsltListViewWebPartMobileAdapter). | |
MobileSimpleViewField | Gets or sets the name of the field that appears in the simple mobile view of the list. | |
MobileUrl | Gets the Web site-relative URL of the mobile list view page. | |
MobileView | Gets or sets a Boolean value that specifies whether the view applies to a mobile device. | |
ModerationType | Gets the Content Approval type for the view. | |
OpenApplicationExtension | Gets or sets the type of application to be used to edit the view. | |
OrderedView | Gets a Boolean value that indicates whether users can reorder items through the user interface. | |
Paged | Gets or sets a Boolean value that indicates whether the view will display items page-by-page, with each page containing at most RowLimit items. | |
ParameterBindings | An attribute of the view specifying its parameter bindings. Gets or sets these bindings. | |
ParentList | Gets the parent list for the view. | |
PersonalView | Gets a Boolean value that indicates whether the view is personalized. | |
ProjectedFields | Gets or sets the ProjectedFields element XML of the view, which itemizes fields from joined foreign lists. | |
PropertiesXml | Gets properties of the view, including the GUID, the type, the display name, the URL, and the ID of the base view. | |
Query | Gets or sets a string that contains the query for the view. | |
ReadOnlyView | Gets a Boolean value that indicates whether the view is read-only. | |
RecurrenceRowset | Gets a Boolean value that specifies whether the view supports recurrence rowsets. | |
RequiresClientIntegration | Gets a Boolean value that indicates whether the view requires client integration. | |
RowLimit | Gets or sets the limit for the number of items that are returned in the view query per page. | |
RowLimitExceeded | Gets or sets alternate rendering when the value set by the RowLimit property is exceeded. | |
SchemaXml | Gets the schema that defines the view. | |
Scope | Gets or sets the recursive scope for the view of a document library. | |
ServerRelativeUrl | Gets the server-relative URL of the view page. | |
StyleID | Gets the ID of the view style for the view. | |
TabularView | Gets or sets whether the list view should include bulk operation checkboxes if the current list view supports them. | |
Threaded | Gets a Boolean value that indicates whether the view is threaded. | |
Title | Gets or sets the display name for the view. | |
TitleResource | Gets the resource object corresponding to the Title property for a field. | |
Toolbar | Gets or sets the toolbar for the view. | |
ToolbarTemplateName | Gets the name of the predefined toolbar template that is used for the view toolbar. | |
ToolbarType | Gets the type of toolbar that is used in the view. | |
Type | Gets the type of the view. | |
Url | Gets the site-relative URL of the page that contains the view. | |
ViewBody | Gets or sets the body of the view. | |
ViewData | Gets or sets the schema definition for additional properties that are associated with the view. | |
ViewEmpty | Gets or sets what is displayed when the query returns no list data for the view. | |
ViewFields | Gets the view fields that are used in the view. | |
ViewFooter | Gets or sets the footer area for the view. | |
ViewHeader | Gets or sets the header area for the view. | |
Views | Gets the parent view collection for the view. | |
Xsl | Gets or sets the inline XSL that is used for the view. | |
XslLink | An attribute specifying the XSL file used by the view. Gets or sets the XSL file. |
Top
Methods
Name | Description | |
---|---|---|
AllowsField | Returns a Boolean value that indicates whether the specified field can be displayed in the view. | |
ApplyStyle | Applies the specified style to the view. | |
Clone | Creates and returns a duplicate of the view. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetAggregationString | Returns the formula that is implemented in an aggregate, or total, view of a list column. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetViewXml | Returns the view’s schema. | |
MemberwiseClone | (Inherited from Object.) | |
OptOutTabularView | A static method to update the Web Parts table in the database by switching off the TabularView flag. | |
RenderAsHtml() | Returns the view in HTML format. | |
RenderAsHtml(Boolean, Boolean, String) | Returns the view in HTML format but allows for rendering within a frameset. | |
SetViewXml | Sets the schema of the view schema. | |
ToString | Returns the title of the view. (Overrides Object.ToString().) | |
Update | Updates the database with changes that are made to the view. |
Top