| WebPartInstance Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: CMS.PortalEngine
 Syntax
Syntaxpublic class WebPartInstance : ISimpleDataContainer
The WebPartInstance type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | WebPartInstance | 
            Constructor.
             | 
|  | WebPartInstance(XmlNode) | 
            Constructor, initializes the instance with given XML data.
             | 
 Properties
Properties| 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.
             | 
|  | 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
             | 
 Methods
Methods| 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 web part 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.
             | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | CheckRequiredColumns | 
            Returns true if given list of columns do not have null values in the object
            (Defined by DataExtensions.) | 
 See Also
See Also