Click or drag to resize
WebPartInstance Class
Web part instance representation.
Inheritance Hierarchy
SystemObject
  CMS.PortalEngineWebPartInstance

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public class WebPartInstance : ISimpleDataContainer

The WebPartInstance type exposes the following members.

Constructors
  NameDescription
Public methodWebPartInstance
Constructor.
Public methodWebPartInstance(XmlNode)
Constructor, initializes the instance with given XML data.
Top
Properties
  NameDescription
Public propertyControlID
WebPart control ID.
Public propertyCurrentVariantInstance
Gets or sets the current variant webpart instance
Public propertyHasVariants
Indicates whether the web part has any variants.
Public propertyInstanceGUID
Instance GUID to identify the web part.
Public propertyIsVariant
Indicates if webpart instance is a variant.
Public propertyIsWidget
Indicates if webpart instance is actually widget.
Public propertyItem
Gets or sets the value of the property.
Public propertyMacroTable
Hashtable with IsMacro flags.
Public propertyMinimized
If true, the widget is minimized.
Public propertyParentZone
Parent web part zone.
Public propertyPartInstanceVariants
Gets the part instance variant list.
Public propertyProperties
Web part properties table.
Public propertyRemoved
Remove flag. If true, web part has been removed. Only for internal purposes.
Public propertyVariantID
Gets or sets the variant id.
Public propertyVariantMode
Gets or sets the variant mode which is used for the variants of this web part instance.
Public propertyWebPartType
WebPart type (codename).
Public propertyXMLVersion
Gets or sets the web part instance XML version
Top
Methods
  NameDescription
Public methodClearValues
Clears the given properties
Public methodClone
Clones the web part object (GUID stays the same when cloned).
Public methodFindVariant
Finds the variant with the given variant ID
Public methodGetValue
Returns the value of the given web part property.
Public methodGetXmlNode
Returns the XML node representing the webpart instance.
Public methodLoadProperties(DataRow)
Loads default values from specified DataRow to the webpart properties.
Public methodLoadProperties(WebPartInstance)
Loads the webpart properties from given webpart.
Public methodLoadVariants
Loads all the MVT/Content personalization variants for this web part instance.
Public methodResolvePropertyMacros
Resolves the property macros, replaces the {%propertyname%} macro with the property value.
Public methodSetValue
Sets the property value of the control.
Top
Extension Methods
  NameDescription
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Top
See Also