Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DockPaneSplitter"/> class.
        /// </summary>
        /// <param name="owner">The owner.</param>
        /// <param name="index">The index.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="owner"/> is <see langword="null"/>.
        /// </exception>
        /// <exception cref="ArgumentOutOfRangeException">
        /// <paramref name="index"/> is negative.
        /// </exception>
        public DockPaneSplitter(DockSplitPanel owner, int index)
        {
            if (owner == null)
                throw new ArgumentNullException(nameof(owner));
            if (index < 0)
                throw new ArgumentOutOfRangeException(nameof(index), "Index must not be negative.");

            _panel = owner;
            _index = index;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DockPaneSplitter"/> class.
        /// </summary>
        /// <param name="owner">The owner.</param>
        /// <param name="index">The index.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="owner"/> is <see langword="null"/>.
        /// </exception>
        /// <exception cref="ArgumentOutOfRangeException">
        /// <paramref name="index"/> is negative.
        /// </exception>
        public DockPaneSplitter(DockSplitPanel owner, int index)
        {
            if (owner == null)
            {
                throw new ArgumentNullException(nameof(owner));
            }
            if (index < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(index), "Index must not be negative.");
            }

            _panel = owner;
            _index = index;
        }