public void Add(string title, params DataField[] fields)
        {
            ListViewColumn col = new ListViewColumn(title);

            foreach (var f in fields)
            {
                col.Views.Add(CellView.GetDefaultCellView(f));
            }
            Add(col);
        }
        public ListViewColumn Add(string title, params IDataField[] fields)
        {
            ListViewColumn col = new ListViewColumn(title);

            foreach (var f in fields)
            {
                col.Views.Add(CellView.GetDefaultCellView(f));
            }
            base.Add(col);
            return(col);
        }
示例#3
0
 public ListViewColumn(string title, CellView cellView) : this()
 {
     Title = title;
     Views.Add(cellView);
 }
示例#4
0
文件: ListView.cs 项目: b-theile/xwt
 public Rectangle GetCellBounds(int row, CellView cell, bool includeMargin)
 {
     return(Backend.GetCellBounds(row, cell, includeMargin));
 }
示例#5
0
 /// <summary>
 /// Focuses and starts editing a cell, so the user can start interacting with it
 /// </summary>
 /// <param name="row">Row</param>
 /// <param name="cell">Cell to edit</param>
 public void StartEditingCell(int row, CellView cell)
 {
     Backend.StartEditingCell(row, cell);
 }
示例#6
0
文件: TreeView.cs 项目: xecrets/xwt
 /// <summary>
 /// Gets the bounds of a cell inside the row at the given position.
 /// </summary>
 /// <returns>The cell bounds inside the widget, relative to the widget bounds.</returns>
 /// <param name="pos">The node position.</param>
 /// <param name="cell">The cell view.</param>
 /// <param name="includeMargin">If set to <c>true</c> include margin (the background of the row).</param>
 public Rectangle GetCellBounds(TreePosition pos, CellView cell, bool includeMargin)
 {
     return(Backend.GetCellBounds(pos, cell, includeMargin));
 }
示例#7
0
 public ListViewColumn(string title, CellView cellView)
     : this()
 {
     Title = title;
     Views.Add (cellView);
 }