Class TreeColumns
A collection of TreeColumn objects. The collection implements the ILineSizeHost interface and VirtualTreeView assigns the collection to the ColumnWidthsProvider.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.VirtualTreeView
Assembly: Syncfusion.GridCommon.Wpf.dll
Syntax
public class TreeColumns : IList<TreeColumn>, ICollection<TreeColumn>, IEnumerable<TreeColumn>, IEnumerable, ILineSizeHost, IDisposable, ISupportInitialize
Constructors
TreeColumns(TreeModel)
Initializes a new instance of the TreeColumns class.
Declaration
public TreeColumns(TreeModel treeModel)
Parameters
Type | Name | Description |
---|---|---|
TreeModel | treeModel | The tree model. |
Properties
Count
Gets the number of elements contained in the collection.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
FrozenFooterCount
Gets or sets the frozen footer count.
Declaration
public int FrozenFooterCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen footer count. |
FrozenHeaderCount
Gets or sets the frozen header count.
Declaration
public int FrozenHeaderCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen header count. |
IsInitializing
Gets a value indicating whether this instance is initializing.
Declaration
public bool IsInitializing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsReadOnly
Gets a value indicating whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
Item[Int32]
Gets or sets the TreeColumn at the specified index.
Declaration
public TreeColumn this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
TreeColumn |
TreeModel
Gets the tree model.
Declaration
public TreeModel TreeModel { get; }
Property Value
Type | Description |
---|---|
TreeModel | The tree model. |
Methods
Add(TreeColumn)
Adds an item to the collection.
Declaration
public void Add(TreeColumn item)
Parameters
Type | Name | Description |
---|---|---|
TreeColumn | item | The object to add to the collection. |
BeginInit()
Signals the object that initialization is starting.
Declaration
public void BeginInit()
Clear()
Removes all items from the collection.
Declaration
public void Clear()
Contains(TreeColumn)
Determines whether the collection contains a specific value.
Declaration
public bool Contains(TreeColumn item)
Parameters
Type | Name | Description |
---|---|---|
TreeColumn | item | The object to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
CopyTo(TreeColumn[], Int32)
Copies the elements of the collection to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(TreeColumn[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
TreeColumn[] | array | The one-dimensional System.Array that is the destination of the elements copied from collection. The System.Array must have zero-based indexing. |
System.Int32 | arrayIndex | The zero-based index in |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
System.ArgumentException |
|
Dispose()
Declaration
public void Dispose()
EndInit()
Signals the object that initialization is complete.
Declaration
public void EndInit()
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TreeColumn> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TreeColumn> | An enumerator that can be used to iterate through the collection. |
IndexOf(TreeColumn)
Determines the index of a the item in the collection.
Declaration
public int IndexOf(TreeColumn item)
Parameters
Type | Name | Description |
---|---|---|
TreeColumn | item | The object to locate. |
Returns
Type | Description |
---|---|
System.Int32 | The index of |
InitializeScrollAxis(ScrollAxisBase)
Initializes the scroll axis.
Declaration
public void InitializeScrollAxis(ScrollAxisBase scrollAxis)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisBase | scrollAxis | The scroll axis. |
Insert(Int32, TreeColumn)
Inserts an item to the collection at the specified index.
Declaration
public void Insert(int index, TreeColumn item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
TreeColumn | item | The object to insert into the collection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
Remove(TreeColumn)
Removes the first occurrence of a specific object from the collection.
Declaration
public bool Remove(TreeColumn item)
Parameters
Type | Name | Description |
---|---|---|
TreeColumn | item | The object to remove from the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
RemoveAt(Int32)
Removes the collection item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the item to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
Events
FooterLineCountChanged
Occurs when the footer line count was changed.
Declaration
public event EventHandler FooterLineCountChanged
Event Type
Type |
---|
System.EventHandler |
HeaderLineCountChanged
Occurs when the header line count was changed.
Declaration
public event EventHandler HeaderLineCountChanged
Event Type
Type |
---|
System.EventHandler |
LineCountChanged
Occurs when the line count was changed.
Declaration
public event EventHandler LineCountChanged
Event Type
Type |
---|
System.EventHandler |
LineHiddenChanged
Occurs when a lines hidden state changed.
Declaration
public event HiddenRangeChangedEventHandler LineHiddenChanged
Event Type
LinesInserted
Occurs when lines were inserted.
Declaration
public event LinesInsertedEventHandler LinesInserted
Event Type
LineSizeChanged
Occurs when a lines size was changed.
Declaration
public event RangeChangedEventHandler LineSizeChanged
Event Type
LinesRemoved
Occurs when lines were removed.
Declaration
public event LinesRemovedEventHandler LinesRemoved
Event Type
Explicit Interface Implementations
ILineSizeHost.DefaultLineSizeChanged
Declaration
event DefaultLineSizeChangedEventHandler ILineSizeHost.DefaultLineSizeChanged
Returns
ILineSizeHost.GetDefaultLineSize()
Declaration
double ILineSizeHost.GetDefaultLineSize()
Returns
Type |
---|
System.Double |
ILineSizeHost.GetFooterLineCount()
Declaration
int ILineSizeHost.GetFooterLineCount()
Returns
Type |
---|
System.Int32 |
ILineSizeHost.GetHeaderLineCount()
Declaration
int ILineSizeHost.GetHeaderLineCount()
Returns
Type |
---|
System.Int32 |
ILineSizeHost.GetHidden(Int32, out Int32)
Declaration
bool ILineSizeHost.GetHidden(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Int32 | repeatValueCount |
Returns
Type |
---|
System.Boolean |
ILineSizeHost.GetLineCount()
Declaration
int ILineSizeHost.GetLineCount()
Returns
Type |
---|
System.Int32 |
ILineSizeHost.GetSize(Int32, out Int32)
Declaration
double ILineSizeHost.GetSize(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Int32 | repeatValueCount |
Returns
Type |
---|
System.Double |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
---|
System.Collections.IEnumerator |