Property Editor Basics Changing Property Classification
  • Updated on 09 Dec 2013
  • 1 minute to read
  • Print
  • Dark
    Light

Property Editor Basics Changing Property Classification

  • Print
  • Dark
    Light

Overview

The way that step properties show up in the designer can be modified using the PropertyClassification attribute. This document shows how to use this attribute.

The following options can be configured for a property:

Node This is the node in the property editor in which this property will be displayed. If not set it will show up under '[Settings]'.
Order This is the order in which the property will show up in the designer.  If not set, it will show up in alphabetical order.
Name This is the name of the property. If not set, it will show up as the properties name with spaces separating CamelCasing.
IsHidden Controls whether or not the property displays in the designer. If not set, it will be shown.


Example

The following code shows a property which has had its order, name and node overridden. Order is 1 instead of the default0. Name is Overridden Name of Property 1 instead of default Property One. Node isNode 1/SubNode A instead of default**[Settings].** ```
[PropertyClassification(1, "Overridden Name of Property 1", "Node 1", "SubNode A")]
public string PropertyOne
{
    get { return propOne; }
    set
    {
        propOne = value;
    }
}

The following code shows a property which has had its node and order overridden.**Node**	  is **Node 1/SubNode**	  **A**	  instead of default **[Settings]**	  .

[PropertyClassification(new string[] { "Node 1", "SubNode A" }, 0)]
public string PropertyTwo
{
    get { return propTwo; }
    set
    {
        propTwo = value;
    }
}



Below are screen shots showing how these properties would have looked without these PropertyClassification Attributes and how they look with them:
Without Attributes
![withoutAtributes.png](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/withoutAtributes.png){height ="276" width="319"}




With Attributes 
![withAtributes.png](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/withAtributes.png){height ="404" width="327"}


Was this article helpful?