示例#1
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/> and <see cref="ElementVisualizedData"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData)
            : this()
        {
            if (elementHandle == null) throw new ArgumentNullException("elementHandle");
            if (visualData == null) throw new ArgumentNullException("visualData");
            
            _elementHandle = elementHandle;

            this.VisualData = visualData;            
        }
示例#2
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/> and <see cref="ElementVisualizedData"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData)
            : this()
        {
            if (elementHandle == null)
            {
                throw new ArgumentNullException("elementHandle");
            }
            if (visualData == null)
            {
                throw new ArgumentNullException("visualData");
            }

            _elementHandle = elementHandle;

            this.VisualData = visualData;
        }
示例#3
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/>, <see cref="ElementVisualizedData"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null)
            {
                throw new ArgumentNullException("elementHandle");
            }
            if (visualData == null)
            {
                throw new ArgumentNullException("visualData");
            }
            if (movabilityInfo == null)
            {
                throw new ArgumentNullException("movabilityInfo");
            }

            _elementHandle = elementHandle;

            this.VisualData     = visualData;
            this.MovabilityInfo = movabilityInfo;
        }
示例#4
0
        /// <summary>
        /// Constructs a new <see cref="Element"/> from the given <see cref=" ElementHandle"/>, <see cref="ElementVisualizedData"/> and <see cref="ElementDragAndDropInfo"/>.
        /// </summary>
        /// <param name="elementHandle"></param>
        /// <param name="visualData"></param>
        /// <param name="movabilityInfo"></param>
        public Element(ElementHandle elementHandle, ElementVisualizedData visualData, ElementDragAndDropInfo movabilityInfo)
            : this()
        {
            if (elementHandle == null) throw new ArgumentNullException("elementHandle");
            if (visualData == null) throw new ArgumentNullException("visualData");
            if (movabilityInfo == null) throw new ArgumentNullException("movabilityInfo");
            
            _elementHandle = elementHandle;

            this.VisualData = visualData;
            this.MovabilityInfo = movabilityInfo;            
        }