AddElementFactory() 공개 메소드

Registers a new OverlayElementFactory with this manager.
Should be used by plugins or other apps wishing to provide a new OverlayElement subclass.
public AddElementFactory ( IOverlayElementFactory factory ) : void
factory IOverlayElementFactory
리턴 void
        /// <summary>
        ///     Internal constructor.  This class cannot be instantiated externally.
        /// </summary>
        internal OverlayElementManager()
        {
            if (instance == null) {
                instance = this;

                // register the default overlay element factories
                instance.AddElementFactory(new Elements.BorderPanelFactory());
                instance.AddElementFactory(new Elements.TextAreaFactory());
                instance.AddElementFactory(new Elements.PanelFactory());
            }
        }
        /// <summary>
        ///     Internal constructor.  This class cannot be instantiated externally.
        /// </summary>
        internal OverlayElementManager()
        {
            if (instance == null)
            {
                instance = this;

                // register the default overlay element factories
                instance.AddElementFactory(new Elements.BorderPanelFactory());
                instance.AddElementFactory(new Elements.TextAreaFactory());
                instance.AddElementFactory(new Elements.PanelFactory());
            }
        }