/// <summary> /// calc the length of the report order. Calc as the difference between input /// from pos and repeat until location. /// </summary> /// <param name="FromRowCol"></param> /// <returns></returns> public int RepeatLength(IRowCol FromRowCol) { var fromRowCol = FromRowCol.ToOneRowCol(); var toRowCol = this.RowCol.ToOneRowCol(); int repeatLength = fromRowCol.DistanceInclusive(toRowCol); return(repeatLength); }
/// <summary> /// calc the length of the erase order. Calc as the difference between input /// from pos and erase to location. /// </summary> /// <param name="FromRowCol"></param> /// <returns></returns> public int EraseLength(IRowCol FromRowCol) { var fromRowCol = FromRowCol.ToOneRowCol(); var toRowCol = this.RowCol.ToOneRowCol(); int eraseLength = fromRowCol.DistanceInclusive(toRowCol); return(eraseLength); }