WebPartInstance Class |
Namespace: CMS.PortalEngine
public class WebPartInstance : ISimpleDataContainer
The WebPartInstance type exposes the following members.
Name | Description | |
---|---|---|
WebPartInstance |
Constructor.
| |
WebPartInstance(XmlNode) |
Constructor, initializes the instance with given XML data.
|
Name | Description | |
---|---|---|
ClearValues |
Clears the given properties
| |
Clone |
Clones the web part object (GUID stays the same when cloned).
| |
FindVariant |
Finds the variant with the given variant ID
| |
GetValue |
Returns the value of the given webpart property property.
| |
GetXmlNode |
Returns the XML node representing the webpart instance.
| |
LoadProperties(DataRow) |
Loads default values from specified DataRow to the webpart properties.
| |
LoadProperties(WebPartInstance) |
Loads the webpart properties from given webpart.
| |
LoadVariants |
Loads all the MVT/Content personalization variants for this web part instance.
| |
ResolvePropertyMacros |
Resolves the property macros, replaces the {%propertyname%} macro with the property value.
| |
SetValue |
Sets the property value of the control.
|
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.) | |
CheckRequiredColumns |
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.) | |
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.) |
Name | Description | |
---|---|---|
DATASOURCE |
Represents nested data source web part name
|
Name | Description | |
---|---|---|
ControlID |
WebPart control ID.
| |
CurrentVariantInstance |
Gets or sets the current variant webpart instance
| |
HasVariants |
Indicates whether the web part has any variants.
| |
InstanceGUID |
Instance GUID to identify the web part.
| |
IsVariant |
Indicates if webpart instance is a variant.
| |
IsWidget |
Indicates if webpart instance is actually widget.
| |
Item |
Gets or sets the value of the property.
| |
MacroTable |
Hashtable with IsMacro flags.
| |
Minimized |
If true, the widget is minimized.
| |
NestedWebParts |
Configuration for the web part data source
| |
ParentZone |
Parent web part zone.
| |
PartInstanceVariants |
Gets the part instance variant list.
| |
Properties |
Web part properties table.
| |
Removed |
Remove flag. If true, web part has been removed. Only for internal purposes.
| |
VariantID |
Gets or sets the variant id.
| |
VariantMode |
Gets or sets the variant mode which is used for the variants of this web part instance.
| |
WebPartType |
WebPart type (codename).
| |
XMLVersion |
Gets or sets the web part instance XML version
|