IfcDoc.CtlProperties.buttonAttributeAggregationRemove_Click C# (CSharp) Method

buttonAttributeAggregationRemove_Click() private method

private buttonAttributeAggregationRemove_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void buttonAttributeAggregationRemove_Click(object sender, EventArgs e)
        {
            DocAttribute docAttr = (DocAttribute)this.m_target;
            while (docAttr.AggregationAttribute != null && docAttr.AggregationAttribute.AggregationAttribute != null)
            {
                docAttr = docAttr.AggregationAttribute;
            }

            docAttr.AggregationAttribute.Delete();
            docAttr.AggregationAttribute = null;

            this.LoadAttributeCardinality();
        }
CtlProperties