The PageTemplateInstance type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
PageTemplateInstance |
Constructor.
|
Methods
Name | Description | |
---|---|---|
AddWebPart(String, WebPartInstance, Int32) |
Adds the web part instance to the specified zone.
| |
AddWebPart(String, Int32, Int32) |
Adds the web part instance to the specified zone
| |
AddWidget |
Adds the widget instance to the specified zone.
| |
AddZone |
Adds the given zone to the template
| |
Clone |
Clones the instance of page templates.
| |
CloneWebPart |
Clones the web part.
| |
CombineWith(WebPartInstance) |
Combines the page template instance with a web part instance, applies the web part instance settings to the current page template instance.
| |
CombineWith(WebPartZoneInstance) |
Combines the page template instance with a web part zone instance, applies the web part zone instance settings to the current page template instance.
| |
CombineWith(PageTemplateInstance, WidgetZoneTypeEnum, Boolean) |
Combines two page template instances, applies the other page template instance settings (only those matching the required zone type in the current instance) to the current instance. Does not add new zones which are not present in the current instance.
| |
ContainsZones |
Returns true if the page template contains zones of the specific type.
| |
EnsureZone |
Ensures that the instance of the given zone exists.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNestedZones |
Gets the list of zones nested in the given web part
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUniqueWebPartId |
Returns unique web part ID within this Page template.
| |
GetWebPart(Guid, String) |
Returns the web part with specified GUID or ID or null if not found.
| |
GetWebPart(String, Boolean) |
Returns the web part with specified ID or null if not found.
| |
GetWebPart(Guid, Int32, Int32) |
Finds the web part by its GUID.
| |
GetZone |
Returns the zone instance with specified ID or null when not found.
| |
GetZonesXML |
Returns the XML representation of the zones configuration.
| |
LoadVariants |
Loads all the MVT/Content personalization variants for this template instance.
| |
LoadZones |
Reloads the zones and webparts info.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveAllWebParts |
Moves all web parts from one zone to another
| |
MoveWebPart |
Moves the web part between two zones
| |
MoveWebPartDown(WebPartInstance, Boolean) |
Moves web part down within its zone.
| |
MoveWebPartDown(String, String, Boolean) |
Moves web part down within the instance of the specified zone.
| |
MoveWebPartToNextZone(WebPartInstance) |
Moves the web part to the Next zone.
| |
MoveWebPartToNextZone(String, String) |
Moves the web part to the next zone.
| |
MoveWebPartToPreviousZone(WebPartInstance) |
Moves the web part to the previous zone.
| |
MoveWebPartToPreviousZone(String, String) |
Moves the web part to the previous zone.
| |
MoveWebPartUp(WebPartInstance, Boolean) |
Moves web part up within its zone.
| |
MoveWebPartUp(String, String, Boolean) |
Moves web part up within the instance of the specified zone.
| |
RemoveZone |
Removes zone from template instance
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ZoneExists |
Returns true if zone with given ID already exists
|
Extension Methods
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mWebPartsXml |
Web parts XML.
| |
mWebPartZones |
Collection of the webpart zones contained within the page template.
|
Properties
Name | Description | |
---|---|---|
ContentPersonalizationVariantsLoaded |
Indicates whether Content personalization variants have been loaded for this page template instance.
| |
MVTVariantsLoaded |
Indicates whether MVT variants have been loaded for this page template instance.
| |
ParentPageTemplate |
Parent page template.
| |
WebParts |
Gets or sets the page template WebParts.
| |
WebPartZones |
Web part zones contained within the Page template.
|
See Also