Class GanttViewTextViewColumnCollection
Represents an observable collection of GanttViewTextViewColumn.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class GanttViewTextViewColumnCollection : ObservableCollection<GanttViewTextViewColumn>, IList<GanttViewTextViewColumn>, ICollection<GanttViewTextViewColumn>, IReadOnlyList<GanttViewTextViewColumn>, IReadOnlyCollection<GanttViewTextViewColumn>, IEnumerable<GanttViewTextViewColumn>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, INotifyPropertyChangingEx
Constructors
GanttViewTextViewColumnCollection(RadGanttViewElement)
Initializes a new instance of the GanttViewTextViewColumnCollection class.
Declaration
public GanttViewTextViewColumnCollection(RadGanttViewElement owner)
Parameters
RadGanttViewElement
owner
The owner. |
Properties
Item[String]
Gets the GanttViewTextViewColumn with the specified column name.
Declaration
public GanttViewTextViewColumn this[string columnName] { get; }
Parameters
System.String
columnName
Name of the column. |
Property Value
GanttViewTextViewColumn |
Owner
Gets the RadGanttViewElement that owns this collection.
Declaration
public RadGanttViewElement Owner { get; }
Property Value
RadGanttViewElement
The owner. |
Methods
Add(String)
Adds a column with the specified name.
Declaration
public void Add(string name)
Parameters
System.String
name
The name. |
Add(String, String)
Adds a column with the the specified name and header text.
Declaration
public void Add(string name, string headerText)
Parameters
System.String
name
The name. |
System.String
headerText
The header text. |
AddRange(GanttViewTextViewColumn[])
Adds the specified collection of columns to the collection.
Declaration
public virtual void AddRange(params GanttViewTextViewColumn[] columns)
Parameters
GanttViewTextViewColumn[]
columns
The columns. |
AddRange(GanttViewTextViewColumnCollection)
Adds the specified collection of columns to the collection.
Declaration
public virtual void AddRange(GanttViewTextViewColumnCollection columns)
Parameters
GanttViewTextViewColumnCollection
columns
The columns. |
ClearItems()
Clears the items.
Declaration
protected override void ClearItems()
Overrides
Contains(String)
Determines whether the collection contains a column with the specified column name.
Declaration
public bool Contains(string columnName)
Parameters
System.String
columnName
Name of the column. |
Returns
System.Boolean
|
GetUniqueName(String)
Gets a unique name for a column of the collection.
Declaration
public string GetUniqueName(string baseName)
Parameters
System.String
baseName
A base name to use. |
Returns
System.String
the unique name for the collection. |
IndexOf(String)
Gets the index of the column with the specified name or -1 if the column is not found.
Declaration
public int IndexOf(string columnName)
Parameters
System.String
columnName
Name of the column. |
Returns
System.Int32
The index of the column if found otherwise returns -1. |
InsertItem(Int32, GanttViewTextViewColumn, Action<GanttViewTextViewColumn>)
Inserts the item.
Declaration
protected override void InsertItem(int index, GanttViewTextViewColumn column, Action<GanttViewTextViewColumn> approvedAction)
Parameters
System.Int32
index
The index. |
GanttViewTextViewColumn
column
The column. |
System.Action<GanttViewTextViewColumn>
approvedAction
The approved action. |
Overrides
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event.
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
NotifyCollectionChangedEventArgs
e
The NotifyCollectionChangedEventArgs instance containing the event data. |
Overrides
Remove(String)
Removes a column with the specified column name.
Declaration
public void Remove(string columnName)
Parameters
System.String
columnName
Name of the column. |
RemoveItem(Int32)
Removes the item.
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
The index. |
Overrides
Rename(String, String)
Renames the column with the specified name with the new name.
Declaration
public void Rename(string name, string newName)
Parameters
System.String
name
The name. |
System.String
newName
The new name. |