public string GetValue(int column) { if (column < 0) { throw new ArgumentOutOfRangeException("column"); } if (_values != null && column < _values.Length) { return(_values[column]); } SmartListView lv = ListView as SmartListView; if (lv != null && lv.AllColumns.Count > 0) { if (column >= lv.AllColumns.Count) { throw new ArgumentOutOfRangeException("column"); } column = lv.AllColumns[column].Index; } else if (ListView != null && ListView.Columns.Count <= column) { throw new ArgumentOutOfRangeException("column"); } if (column < 0 || column > SubItems.Count) { return(null); } return(SubItems[column].Text); }
public SmartGroup(SmartListView listView) : this(listView, new ListViewGroup()) { if (listView == null) { throw new ArgumentNullException("listView"); } }
public SmartGroupSorter(SmartListView view) { if (view == null) { throw new ArgumentNullException("view"); } _view = view; }
/// <summary> /// Initializes a new instance of the <see cref="SmartColumn"/> class. /// </summary> /// <param name="view">The view.</param> public SmartColumn(SmartListView view) { if (view == null) { throw new ArgumentNullException("view"); } _view = view; }
public SmartListViewItem(SmartListView listView) { if (listView == null) { throw new ArgumentNullException("listView"); } _view = listView; }
static SmartListView FindView(IContainer container) { foreach (Component c in container.Components) { SmartListView slv = c as SmartListView; if (slv != null) { return(slv); } } return(null); }
/// <summary> /// Initializes a new instance of the <see cref="SmartColumn"/> class. /// </summary> /// <param name="view">The view.</param> /// <param name="text">The text.</param> /// <param name="menuText">The menu text.</param> /// <param name="width">The width.</param> /// <param name="align">The align.</param> public SmartColumn(SmartListView view, string text, string menuText, int width, HorizontalAlignment align) { if (view == null) { throw new ArgumentNullException("view"); } _view = view; Text = text; MenuText = menuText; Width = _defaultWidth = width; TextAlign = align; }
SmartGroup(SmartListView listView, ListViewGroup group) { if (listView == null) { throw new ArgumentNullException("listView"); } else if (group == null) { throw new ArgumentNullException("group"); } Debug.Assert(group.Tag == null); _lv = listView; _group = group; _group.Tag = this; }
/// <summary> /// Initializes a new instance of the <see cref="SmartColumn"/> class. /// </summary> /// <param name="view">The view.</param> /// <param name="menuText">The menu text.</param> /// <param name="width">The width.</param> /// <param name="align">The align.</param> public SmartColumn(SmartListView view, string menuText, int width, HorizontalAlignment align) : this(view, menuText.Replace("&", ""), menuText, width, align) { }
/// <summary> /// Initializes a new instance of the <see cref="SmartColumn"/> class. /// </summary> /// <param name="view">The view.</param> /// <param name="menuText">The menu text.</param> /// <param name="width">The width.</param> /// <param name="name">The name.</param> public SmartColumn(SmartListView view, string menuText, int width, string name) : this(view, menuText, width, HorizontalAlignment.Left) { this.Name = name; }
/// <summary> /// Initializes a new instance of the <see cref="SmartColumn"/> class. /// </summary> /// <param name="view">The view.</param> /// <param name="text">The text.</param> /// <param name="menuText">The menu text.</param> /// <param name="width">The width.</param> public SmartColumn(SmartListView view, string text, string menuText, int width) : this(view, text, menuText, width, HorizontalAlignment.Left) { }
public SmartGroup(SmartListView listView, string key, string headerText) : this(listView, new ListViewGroup(key, headerText)) { }
public SmartGroup(SmartListView listView, string header, HorizontalAlignment headerAlignment) : this(listView, new ListViewGroup(header, headerAlignment)) { }
public SmartGroup(SmartListView listView, string header) : this(listView, new ListViewGroup(header)) { }