ComponentFactory.Krypton.Ribbon.KryptonRibbonQATButtonCollectionEditor.SetItems C# (CSharp) 메소드

SetItems() 보호된 메소드

Sets the specified array as the items of the collection.
protected SetItems ( object editValue, object value ) : object
editValue object The collection to edit.
value object An array of objects to set as the collection items.
리턴 object
        protected override object SetItems(object editValue, object[] value)
        {
            // Cast the context into the expected control type
            KryptonRibbon ribbon = (KryptonRibbon)Context.Instance;

            // Suspend changes until collection has been updated
            if (ribbon != null)
                ribbon.SuspendLayout();

            // Let base class update the collection
            object ret = base.SetItems(editValue, value);

            if (ribbon != null)
                ribbon.ResumeLayout(true);

            return ret;
        }