[V8i C#] How to get the DisplayName of a property from PropertyDef

I'm writing an add-in in C# using the Bentley Map API where I need to show the DisplayName of a property (of a feature) but in PropertyDef there's no such property than can get me the DisplayName.

So how can I get the DisplayName of a property from PropertyDef?

Thanks

Niko

Parents Reply
  • Unknown said:
    Can you provide some code snippet to demonstrate what API and how do you use?

    I try to show Property Display Name and Value in Grid View

    Property oProperty;
    PropertyDef oPropertyDef;

    PropertyEnumerator PropEnum = oFeature.GetPropertyEnumerator();

    while (PropEnum.MoveNext())
    {
    oProperty = PropEnum.Current;

    oPropertyDef = oProperty.GetPropertyDefinition();

    propDisplayName = oPropertyDef.DisplayName; <-- In Interface PropertyDef doesn't have DisplayName property
    propValue = oProperty.value;

    string[] row = new string[] { propName, propvalue };
    GridView.Rows.Add(row);
    }

Children
No Data