namespace QC.CorpTest.Libraries.ExcelLibrary;

public class ExcelRange
{
	private ExcelCell startCell;

	private ExcelCell endCell;

	private bool selectEntireRow;

	private bool selectEntireColumn;

	public ExcelCell StartCell
	{
		get
		{
			return startCell;
		}
		set
		{
			startCell = value;
		}
	}

	public ExcelCell EndCell
	{
		get
		{
			return endCell;
		}
		set
		{
			endCell = value;
		}
	}

	public bool SelectEntireRow
	{
		get
		{
			return selectEntireRow;
		}
		set
		{
			selectEntireRow = value;
		}
	}

	public bool SelectEntireColumn
	{
		get
		{
			return selectEntireColumn;
		}
		set
		{
			selectEntireColumn = value;
		}
	}

	public ExcelRange()
	{
	}

	public ExcelRange(ExcelCell startCell, ExcelCell endCell)
	{
		this.startCell = startCell;
		this.endCell = endCell;
	}

	public string GetAddressInR1C1()
	{
		return startCell.GetCellAddressInR1C1() + ":" + endCell.GetCellAddressInR1C1();
	}

	public string GetAddressInA1()
	{
		string cellAddressInA = startCell.GetCellAddressInA1();
		string cellAddressInA2 = endCell.GetCellAddressInA1();
		return cellAddressInA + ":" + cellAddressInA2;
	}
}
