/// <summary> /// Constructor that utilizes dependency injection. /// </summary> /// <param name="range">An instance of the ITextRange2 COM interface</param> internal TextRange(ITextRange2 range) => this.range = range;
/// <summary> /// This constructor calls its base class' constructor. /// </summary> /// <param name="range">An instance of the ITextRange2 COM interface.</param> /// <param name="selection">An instance of the ITextSelection2 COM interface.</param> internal TextSelection(ITextRange2 range, ITextSelection2 selection) : base(range) => this.selection = selection;