예제 #1
0
파일: TextPointer.cs 프로젝트: mind0n/hive
        // Creates a new TextPointer instance.
        internal TextPointer(TextPointer position, int offset)
        {
            if (position == null)
            {
                throw new ArgumentNullException("position");
            }

            InitializeOffset(position, offset, position.GetGravityInternal());
        }
예제 #2
0
파일: TextPointer.cs 프로젝트: mind0n/hive
        //------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        /// <summary>
        /// Creates a new instance of TextPointer object.
        /// </summary>
        /// <param name="textPointer">
        /// TextPointer from which initial properties and location are initialized.
        /// </param>
        /// <remarks>
        /// New TextPointers always have their IsFrozen property set to false,
        /// regardless of the state of the position parameter.  Otherwise the
        /// new TextPointer instance is identical to the position parameter.
        /// </remarks>
        internal TextPointer(TextPointer textPointer)
        {
            if (textPointer == null)
            {
                throw new ArgumentNullException("textPointer");
            }

            InitializeOffset(textPointer, 0, textPointer.GetGravityInternal());
        }