// Creates a new TextPointer instance. internal TextPointer(TextPointer position, int offset) { if (position == null) { throw new ArgumentNullException("position"); } InitializeOffset(position, offset, position.GetGravityInternal()); }
//------------------------------------------------------ // // 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()); }