Interface IView
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a View object
public interface IView : IDataModel<IView>, IDataModelParent, IDataModelWithContext, ISupportModules<IView>, IDataModelGet<IView>, IDataModelLoad<IView>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
Aggregations
Specifies the aggregations displayed by the list view. The Aggregations property contains a CAML string.
string Aggregations { get; set; }
Property Value
AggregationsStatus
Specifies whether the aggregations are shown in the list view
string AggregationsStatus { get; set; }
Property Value
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
AssociatedContentTypeId
Gets or sets Associated Content Type Id
string AssociatedContentTypeId { get; set; }
Property Value
BaseViewId
Specifies the base view identifier of the list view
string BaseViewId { get; }
Property Value
CalendarViewStyles
Gets or sets Calendar View Styles
string CalendarViewStyles { get; set; }
Property Value
ColumnWidth
Gets or sets Column Width
string ColumnWidth { get; set; }
Property Value
CustomFormatter
Gets or sets Custom Formatter
string CustomFormatter { get; set; }
Property Value
DefaultView
Gets or sets a Boolean value that specifies whether the view is the default view
bool DefaultView { get; set; }
Property Value
DefaultViewForContentType
Gets or sets a Boolean value that specifies whether the view is the default view for the associated content type
bool DefaultViewForContentType { get; set; }
Property Value
EditorModified
Gets a Boolean value that indicates whether the view was modified in an HTML editor
bool EditorModified { get; set; }
Property Value
Formats
Specifies the definitions for column and row formatting that are used in a datasheet view
string Formats { get; set; }
Property Value
GridLayout
An attribute of the view, specifies the quick edit layout
string GridLayout { get; set; }
Property Value
Hidden
Gets or sets Hidden
bool Hidden { get; set; }
Property Value
HtmlSchemaXml
Gets the Html Schema Xml
string HtmlSchemaXml { get; }
Property Value
Id
Gets the Id
Guid Id { get; }
Property Value
ImageUrl
Specifies the server relative or absolute URL of the Image for the List View
string ImageUrl { get; }
Property Value
IncludeRootFolder
Specifies if the Root Folder is included in the List View
bool IncludeRootFolder { get; set; }
Property Value
JSLink
An attribute of the view, specifies the Javascript files used for the view.
string JSLink { get; set; }
Property Value
ListViewXml
Gets or sets List View Xml
string ListViewXml { get; set; }
Property Value
Method
Specifies the view method for the list view
string Method { get; set; }
Property Value
MobileDefaultView
Specifies whether the list view is the default for a mobile device
bool MobileDefaultView { get; set; }
Property Value
MobileView
Specifies whether the list view applies to a mobile device
bool MobileView { get; set; }
Property Value
ModerationType
Specifies the content approval type for the list view. A string that indicates the Content Approval type, which can be one of the following values: HideUnapproved -- Unapproved draft items are hidden from users who only have permission to read items. Contributor -- Pending and rejected items for the current user are displayed. Moderator -- Pending and rejected items for all users are displayed to users who have managed list permissions.
string ModerationType { get; }
Property Value
NewDocumentTemplates
An attribute of the view, indicates what documents/templates are visible in "New" menu of a document library
string NewDocumentTemplates { get; set; }
Property Value
OrderedView
Specifies whether users can reorder items through the user interface
bool OrderedView { get; }
Property Value
PageRenderType
Gets the reason why the page is rendered in classic UX, or Modern if the page is in Modern UX
ListPageRenderType PageRenderType { get; }
Property Value
Paged
Specifies whether the list view supports displaying items across multiple pages
bool Paged { get; set; }
Property Value
PersonalView
Specifies whether the view is a personal view or a public view
bool PersonalView { get; }
Property Value
ReadOnlyView
Specifies if the view is read-only
bool ReadOnlyView { get; }
Property Value
RequiresClientIntegration
Specifies whether this view requires client integration
bool RequiresClientIntegration { get; }
Property Value
RowLimit
Specifies the limit for the number of items that the list view will return per page
int RowLimit { get; set; }
Property Value
Scope
Specifies the recursive scope for the list view of a document library
ViewScope Scope { get; set; }
Property Value
ServerRelativeUrl
Specifies the server relative URL of the list view page
string ServerRelativeUrl { get; }
Property Value
StyleId
Specifies the identifier of the view style for the list view
string StyleId { get; }
Property Value
TabularView
Gets or sets the TabularView attribute in the View Schema XML
bool TabularView { get; set; }
Property Value
Threaded
Gets a Boolean value that indicates whether the view is threaded
bool Threaded { get; }
Property Value
Title
Specifies the Display Name of the List View
string Title { get; set; }
Property Value
Toolbar
Specifies the toolbar (CAML) for the list view
string Toolbar { get; set; }
Property Value
ToolbarTemplateName
Specifies the name of the toolbar template that is used for the list view toolbar
string ToolbarTemplateName { get; }
Property Value
ViewData
Specifies the view data for the list view
string ViewData { get; set; }
Property Value
ViewFields
Gets or sets View Fields
IViewFieldCollection ViewFields { get; }
Property Value
ViewJoins
Specifies the list joins that will be used by the list view
string ViewJoins { get; set; }
Property Value
ViewProjectedFields
Specifies the projected fields that will be used by the list view
string ViewProjectedFields { get; set; }
Property Value
ViewQuery
Specifies the CAML query that will be used by the list view
string ViewQuery { get; set; }
Property Value
ViewType
Specifies the type of the view
ViewType ViewType { get; }
Property Value
ViewType2
Gets or sets the ViewType2
ViewType2 ViewType2 { get; set; }
Property Value
Methods
AddViewField(string)
Adds a field to the current view
void AddViewField(string internalFieldName)
Parameters
internalFieldNamestringInternal name of the field to add
AddViewFieldAsync(string)
Adds a field to the current view
Task AddViewFieldAsync(string internalFieldName)
Parameters
internalFieldNamestringInternal name of the field to add
Returns
MoveViewFieldTo(string, int)
Moves a view field to a new position in the view
void MoveViewFieldTo(string internalFieldName, int newOrder)
Parameters
MoveViewFieldToAsync(string, int)
Moves a view field to a new position in the view
Task MoveViewFieldToAsync(string internalFieldName, int newOrder)
Parameters
Returns
RemoveViewField(string)
Removes a field from the current view
void RemoveViewField(string internalFieldName)
Parameters
internalFieldNamestringInternal name of the field to remove
RemoveViewFieldAsync(string)
Removes a field from the current view
Task RemoveViewFieldAsync(string internalFieldName)
Parameters
internalFieldNamestringInternal name of the field to remove
Returns
SetViewXml(string)
Sets the XML schema for the current view. Use this method instead of updating ListViewXml when you
want to persist view settings that are only part of the view schema, e.g. column widths (ColumnWidth)
void SetViewXml(string viewXml)
Parameters
viewXmlstringXML schema to apply to the view, e.g. the (modified) value of ListViewXml
SetViewXmlAsync(string)
Sets the XML schema for the current view. Use this method instead of updating ListViewXml when you
want to persist view settings that are only part of the view schema, e.g. column widths (ColumnWidth)
Task SetViewXmlAsync(string viewXml)
Parameters
viewXmlstringXML schema to apply to the view, e.g. the (modified) value of ListViewXml