Aspose.Cells.Examples.CSharp.Formatting.ConditionalFormatting.GetCellAreaByName C# (CSharp) Метод

GetCellAreaByName() статический приватный Метод

static private GetCellAreaByName ( string s ) : CellArea
s string
Результат CellArea
        internal static CellArea GetCellAreaByName(string s)
        {
            CellArea area = new CellArea();
            string[] strCellRange = s.Replace("$", "").Split(':');
            int column;
            CellsHelper.CellNameToIndex(strCellRange[0], out area.StartRow, out column);
            area.StartColumn = column;
            if (strCellRange.Length == 1)
            {
                area.EndRow = area.StartRow;
                area.EndColumn = area.StartColumn;
            }
            else
            {
                CellsHelper.CellNameToIndex(strCellRange[1], out area.EndRow, out column);
                area.EndColumn = column;
            }
            return area;
        }
        // This method implements the IconSet conditional formatting type.