PageTemplateInstance Methods |
The PageTemplateInstance type exposes the following members.
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.
| |
GetNestedZones |
Gets the list of zones nested in the given web part
| |
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.
| |
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
| |
ZoneExists |
Returns true if zone with given ID already exists
|
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.) |