Aspose.Cells.GridWeb.Examples.CSharp.RowsAndColumns.ResizeRowsColumns.btnSetRowHeight_Click C# (CSharp) Метод

btnSetRowHeight_Click() защищенный Метод

protected btnSetRowHeight_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        protected void btnSetRowHeight_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                // ExStart:SetRowHeight
                // Get row index entered by user
                int rowIndex = Convert.ToInt16(txtRowIndex.Text.Trim());

                // Get row height entered by user
                int rowHeight = Convert.ToInt16(txtRowHeight.Text.Trim());

                // Accessing the cells collection of the worksheet that is currently active
               GridCells cells = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex].Cells;

                // Resize row at specified index to specified height
                cells.SetRowHeight(rowIndex, rowHeight);
                // ExEnd:SetRowHeight
            }            
        }