다음을 통해 공유


SPView Members

Include Protected Members
Include Inherited 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
Public method SPView Initializes a new instance of the SPView class.

Top

Properties

  Name Description
Public property Aggregations Gets or sets field references for one or more aggregate, or total, columns used in a view.
Public property AggregationsStatus Gets or sets a string that specifies whether aggregate, or total, columns are used in the view.
Public property BaseViewID Gets the ID of the base view for the view.
Public property CalendarSettings Gets or sets string data for calendar-specific configuration settings.
Public property 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.
Public property CssStyleSheet Gets the file name of the cascading style sheet (CSS) that is specified by the CssStyleSheet attribute of the view schema.
Public property DefaultView Gets or sets a Boolean value that specifies whether the view is the default view.
Public property DefaultViewForContentType Gets or sets a Boolean value that specifies whether the view is the default view for the associated content type.
Public property EditorModified Gets a Boolean value that indicates whether the view was modified in an HTML editor.
Public property Formats Gets or sets definitions for column and row formatting that are used in a datasheet view.
Public property GroupByFooter Gets or sets the definition of the Group By footer that is used in the view.
Public property GroupByHeader Gets or sets the definition of the Group By header used in the view.
Public property Hidden Gets or sets a Boolean value that specifies whether the view is hidden.
Public property HtmlSchemaXml Gets the entire schema for the view.
Public property ID Gets the GUID that identifies the view.
Public property ImageUrl Gets the URL of the image that is associated with the list view.
Public property IncludeRootFolder Gets or sets a Boolean value that specifies whether the root folder is returned in the list view.
Public property InlineEdit Gets or sets a string that specifies whether the view is in inline edit mode.
Public property Joins Gets or sets the Joins element section of the XML that defines the view.
Public property Level Gets the level of publication for documents that are displayed in the view.
Public property Method Gets or sets the view method for the list view.
Public property MobileDefaultView Gets or sets a Boolean value that specifies whether the view is the default view for a mobile device.
Public property 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).
Public property MobileSimpleViewField Gets or sets the name of the field that appears in the simple mobile view of the list.
Public property MobileUrl Gets the Web site-relative URL of the mobile list view page.
Public property MobileView Gets or sets a Boolean value that specifies whether the view applies to a mobile device.
Public property ModerationType Gets the Content Approval type for the view.
Public property OpenApplicationExtension Gets or sets the type of application to be used to edit the view.
Public property OrderedView Gets a Boolean value that indicates whether users can reorder items through the user interface.
Public property 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.
Public property ParameterBindings An attribute of the view specifying its parameter bindings. Gets or sets these bindings.
Public property ParentList Gets the parent list for the view.
Public property PersonalView Gets a Boolean value that indicates whether the view is personalized.
Public property ProjectedFields Gets or sets the ProjectedFields element XML of the view, which itemizes fields from joined foreign lists.
Public property PropertiesXml Gets properties of the view, including the GUID, the type, the display name, the URL, and the ID of the base view.
Public property Query Gets or sets a string that contains the query for the view.
Public property ReadOnlyView Gets a Boolean value that indicates whether the view is read-only.
Public property RecurrenceRowset Gets a Boolean value that specifies whether the view supports recurrence rowsets.
Public property RequiresClientIntegration Gets a Boolean value that indicates whether the view requires client integration.
Public property RowLimit Gets or sets the limit for the number of items that are returned in the view query per page.
Public property RowLimitExceeded Gets or sets alternate rendering when the value set by the RowLimit property is exceeded.
Public property SchemaXml Gets the schema that defines the view.
Public property Scope Gets or sets the recursive scope for the view of a document library.
Public property ServerRelativeUrl Gets the server-relative URL of the view page.
Public property StyleID Gets the ID of the view style for the view.
Public property TabularView Gets or sets whether the list view should include bulk operation checkboxes if the current list view supports them.
Public property Threaded Gets a Boolean value that indicates whether the view is threaded.
Public property Title Gets or sets the display name for the view.
Public property Toolbar Gets or sets the toolbar for the view.
Public property ToolbarTemplateName Gets the name of the predefined toolbar template that is used for the view toolbar.
Public property ToolbarType Gets the type of toolbar that is used in the view.
Public property Type Gets the type of the view.
Public property Url Gets the site-relative URL of the page that contains the view.
Public property ViewBody Gets or sets the body of the view.
Public property ViewData Gets or sets the schema definition for additional properties that are associated with the view.
Public property ViewEmpty Gets or sets what is displayed when the query returns no list data for the view.
Public property ViewFields Gets the view fields that are used in the view.
Public property ViewFooter Gets or sets the footer area for the view.
Public property ViewHeader Gets or sets the header area for the view.
Public property Views Gets the parent view collection for the view.
Public property Xsl Gets or sets the inline XSL that is used for the view.
Public property XslLink An attribute specifying the XSL file used by the view. Gets or sets the XSL file.

Top

Methods

  Name Description
Public method AllowsField Returns a Boolean value that indicates whether the specified field can be displayed in the view.
Public method ApplyStyle Applies the specified style to the view.
Public method Clone Creates and returns a duplicate of the view.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAggregationString Returns the formula that is implemented in an aggregate, or total, view of a list column.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetViewXml Returns the view’s schema.
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member OptOutTabularView A static method to update the Web Parts table in the database by switching off the TabularView flag.
Public method RenderAsHtml() Returns the view in HTML format.
Public method RenderAsHtml(Boolean, Boolean, String) Returns the view in HTML format but allows for rendering within a frameset.
Public method SetViewXml Sets the schema of the view schema.
Public method ToString Returns the title of the view. (Overrides Object.ToString().)
Public method Update Updates the database with changes that are made to the view.

Top

See Also

Reference

SPView Class

Microsoft.SharePoint Namespace