Dynamicweb 8 Documentation
PropertyType Class
Members  Example 

Provides information about type properties.
Object Model
PropertyType ClassPropertyGroupCollection ClassPropertyGroup Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class PropertyType 
[SerializableAttribute()] 
public class PropertyType 
Example
class MyPage : System.Web.UI.Page
{
    public void ContextMenu()
    {
        Dynamicweb.Controls.ContextMenu FieldsContext = new Dynamicweb.Controls.ContextMenu();

        PropertyTypeCollection propTypes = Dynamicweb.eCommerce.Common.Context.PropertyTypes;
        if (propTypes.Count > 0)
        {
            foreach (PropertyType propType in propTypes)
            {
                Dynamicweb.Controls.ContextMenuButton btn = new Dynamicweb.Controls.ContextMenuButton();
                btn.Image = Dynamicweb.Controls.Icons.Icon.Type.Check;
                btn.Text = propType.Name;
                btn.DoTranslate = Dynamicweb.Controls.ContextMenuButton.TranslateStates.False;
                btn.OnClientClick = string.Format("checkTab('PROPERTY', 4, function(){{AddPropertyLine('ADD','{0}');}});", propType.ID);

                FieldsContext.Controls.Add(btn);
            }
        }
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.PropertyType

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PropertyType Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback