SetValue() public méthode

public SetValue ( int row, int column, string value ) : ExcelTableCell,
row int
column int
value string
Résultat ExcelTableCell,
    public static void DrawCell(ExcelTable table, int row, int column)
    {
        ExcelTableCell cell = table.GetCell(row, column);

        if (cell != null)
        {
            switch (cell.Type)
            {
            case ExcelTableCellType.TextField:
            {
                string s = EditorGUILayout.TextField(cell.Value.ToString(), GUILayout.MaxWidth(cell.width));
                cell.Value = s;
                break;
            }

            case ExcelTableCellType.Label:
            {
                EditorGUILayout.LabelField(cell.Value.ToString(), GUILayout.MaxWidth(cell.width));
                break;
            }

            case ExcelTableCellType.Popup:
            {
                int selectIndex = cell.ValueSelected.IndexOf(cell.Value);
                if (selectIndex < 0)
                {
                    selectIndex = 0;
                }
                selectIndex = EditorGUILayout.Popup(selectIndex, cell.ValueSelected.ToArray(), GUILayout.MaxWidth(cell.width));
                cell.Value  = cell.ValueSelected[selectIndex];
                break;
            }

            default:
            {
                break;
            }
            }
        }
        else
        {
            string s = EditorGUILayout.TextField(table.GetValue(row, column).ToString());
            table.SetValue(row, column, s);
        }
    }
 public static void DrawCell(ExcelTable table, int row, int column)
 {
     ExcelTableCell cell = table.GetCell(row, column);
     if (cell != null)
     {
         switch (cell.Type)
         {
             case ExcelTableCellType.TextField:
                 {
                     string s = EditorGUILayout.TextField(cell.Value.ToString(), GUILayout.MaxWidth(cell.width));
                     cell.Value = s;
                     break;
                 }
             case ExcelTableCellType.Label:
                 {
                     EditorGUILayout.LabelField(cell.Value.ToString(), GUILayout.MaxWidth(cell.width));
                     break;
                 }
             case ExcelTableCellType.Popup:
                 {
                     int selectIndex = cell.ValueSelected.IndexOf(cell.Value);
                     if (selectIndex < 0)
                     {
                         selectIndex = 0;
                     }
                     selectIndex = EditorGUILayout.Popup(selectIndex, cell.ValueSelected.ToArray(), GUILayout.MaxWidth(cell.width));
                     cell.Value = cell.ValueSelected[selectIndex];
                     break;
                 }
             default:
                 {
                     break;
                 }
         }
     }
     else
     {
         string s = EditorGUILayout.TextField(table.GetValue(row, column).ToString());
         table.SetValue(row, column, s);
     }
 }