[CONNECT C# ADDIN] check if property is hidden

i am using .net apis.

i am looping through a model and finding a certain item type, then i am looping through the properties in that item type. i am getting the property name and value but im struggling to find out how to tell if that property is hidden or not. Im referring to if a user selects the element the item type is assigned to and in the properties dialog doing a right click > hide on a given property in the item type.

//testing
            BD.DgnFile activeFile = Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnFile();
            BD.DgnModel activemodel = Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnModel();
            BD.ModelElementsCollection eleCol = activemodel.GetGraphicElements();
            foreach (Element curEle in eleCol)
            {
                if (curEle.ElementType == Bentley.DgnPlatformNET.MSElementType.CellHeader)
                {
                    Bentley.DgnPlatformNET.CustomItemHost host = new Bentley.DgnPlatformNET.CustomItemHost(curEle, true);
                    IList<BD.DgnEC.IDgnECInstance> fields = host.CustomItems;
                    foreach (BD.DgnEC.IDgnECInstance curField in fields)
                    {
                        if (curField.ClassDefinition.Name.ToUpper().Contains("OHDOT_SHEET"))
                        {//found 
                            foreach (var curprop in curField)
                            {
                                if(curprop.SOMETHING TO CHECK IF HIDDEN)
                                {//hidden

                                }
                            }
                        }
                        
                    }
                }
            }
 

Parents Reply Children
No Data