Class GridListColumns
Inheritance
System.Object
GridListColumns
Implements
System.Collections.IEnumerable
System.IDisposable
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridListColumns : Object, IList<GridListColumn>, ICollection<GridListColumn>, IEnumerable<GridListColumn>, IEnumerable, IPaddedEditableLineSizeHost, IEditableLineSizeHost, ILineSizeHost, IDisposable, ISupportInitialize
Constructors
GridListColumns(GridListModel)
Declaration
public GridListColumns(GridListModel gridModel)
Parameters
Properties
Count
Gets the number of elements contained in the collection.
Declaration
public int Count { get; }
Property Value
DefaultLineSize
Declaration
public double DefaultLineSize { get; set; }
Property Value
Declaration
public int FooterLineCount { get; set; }
Property Value
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.
|
HeaderLineCount
Declaration
public int HeaderLineCount { get; set; }
Property Value
IsInitializing
Gets a value indicating whether this instance is initializing.
Declaration
public bool IsInitializing { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance is initializing; otherwise, false .
|
IsReadOnly
Gets a value indicating whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Gets or sets the at the specified index.
Declaration
public GridListColumn this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
LineCount
Declaration
public int LineCount { get; set; }
Property Value
Model
Declaration
public GridListModel Model { get; }
Property Value
PaddingDistance
Declaration
public double PaddingDistance { get; set; }
Property Value
SupportsInsertRemove
Declaration
public bool SupportsInsertRemove { get; }
Property Value
SupportsNestedLines
Declaration
public bool SupportsNestedLines { get; }
Property Value
TotalExtent
Declaration
public double TotalExtent { get; }
Property Value
Methods
Add(GridListColumn)
Adds an item to the collection.
Declaration
public void Add(GridListColumn item)
Parameters
Type |
Name |
Description |
GridListColumn |
item |
The object to add to the collection.
|
Declaration
public void add_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Declaration
public void add_LinesInserted(LinesInsertedEventHandler value)
Parameters
Declaration
public void add_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Declaration
public void add_LinesRemoved(LinesRemovedEventHandler value)
Parameters
BeginInit()
Signals the object that initialization is starting.
Declaration
Clear()
Removes all items from the collection.
Declaration
Contains(GridListColumn)
Determines whether the collection contains a specific value.
Declaration
public bool Contains(GridListColumn item)
Parameters
Type |
Name |
Description |
GridListColumn |
item |
The object to locate in the collection.
|
Returns
Type |
Description |
System.Boolean |
true if item is found in the collection; otherwise, false.
|
CopyTo(GridListColumn[], Int32)
Copies the elements of the collection to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(GridListColumn[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
GridListColumn[] |
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 array at which copying begins.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
array is null.
|
System.ArgumentOutOfRangeException |
arrayIndex is less than 0.
|
System.ArgumentException |
array is multidimensional.-or-arrayIndex is equal to or greater than the length of array .-or-The number of elements in the source collection is greater than the available space from arrayIndex to the end of the destination array .-or-Type T cannot be cast automatically to the type of the destination array .
|
CreateMoveLines()
Declaration
public IEditableLineSizeHost CreateMoveLines()
Returns
DeferRefresh()
Declaration
public IDisposable DeferRefresh()
Returns
Dispose()
Declaration
EndInit()
Signals the object that initialization is complete.
Declaration
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<GridListColumn> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<GridListColumn> |
An enumerator that can be used to iterate through the collection.
|
GetNestedLines(Int32)
Declaration
public IEditableLineSizeHost GetNestedLines(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
IndexOf(GridListColumn)
Determines the index of a the item in the collection.
Declaration
public int IndexOf(GridListColumn item)
Parameters
Returns
Type |
Description |
System.Int32 |
The index of item if found in the list; otherwise, -1.
|
Initializes the scroll axis.
Declaration
public void InitializeScrollAxis(ScrollAxisBase scrollAxis)
Parameters
Insert(Int32, GridListColumn)
Inserts an item to the collection at the specified index.
Declaration
public void Insert(int index, GridListColumn item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index at which item should be inserted.
|
GridListColumn |
item |
The object to insert into the collection.
|
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
index is not a valid index in the collection.
|
InsertLines(Int32, Int32)
Declaration
public void InsertLines(int insertAtLine, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
insertAtLine |
|
System.Int32 |
count |
|
Declaration
public void InsertLines(int insertAtLine, int count, IEditableLineSizeHost movelines)
Parameters
Declaration
public void InsertLines(int insertAtLine, int count, LineSizeCollection moveLines)
Parameters
Type |
Name |
Description |
System.Int32 |
insertAtLine |
|
System.Int32 |
count |
|
LineSizeCollection |
moveLines |
|
Remove(GridListColumn)
Removes the first occurrence of a specific object from the collection.
Declaration
public bool Remove(GridListColumn item)
Parameters
Type |
Name |
Description |
GridListColumn |
item |
The object to remove from the collection.
|
Returns
Type |
Description |
System.Boolean |
true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the original collection.
|
Declaration
public void remove_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Declaration
public void remove_LinesInserted(LinesInsertedEventHandler value)
Parameters
Declaration
public void remove_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Declaration
public void remove_LinesRemoved(LinesRemovedEventHandler value)
Parameters
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 |
index is not a valid index in the collection.
|
RemoveLines(Int32, Int32)
Declaration
public void RemoveLines(int removeAtLine, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
removeAtLine |
|
System.Int32 |
count |
|
Declaration
public void RemoveLines(int removeAtLine, int count, IEditableLineSizeHost movelines)
Parameters
Declaration
public void RemoveLines(int removeAtLine, int count, LineSizeCollection moveLines)
Parameters
Type |
Name |
Description |
System.Int32 |
removeAtLine |
|
System.Int32 |
count |
|
LineSizeCollection |
moveLines |
|
SetHidden(Int32, Int32, Boolean)
Declaration
public void SetHidden(int from, int to, bool hide)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
System.Boolean |
hide |
|
Declaration
public void SetNestedLines(int index, IEditableLineSizeHost nestedLines)
Parameters
SetRange(Int32, Int32, Double)
Declaration
public void SetRange(int from, int to, double size)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
System.Double |
size |
|
Events
Occurs when the footer line count was changed.
Declaration
public event EventHandler FooterLineCountChanged
Event Type
HeaderLineCountChanged
Occurs when the header line count was changed.
Declaration
public event EventHandler HeaderLineCountChanged
Event Type
LineCountChanged
Occurs when the line count was changed.
Declaration
public event EventHandler LineCountChanged
Event Type
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
Declaration
double IEditableLineSizeHost.get_Item(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
double IEditableLineSizeHost.this[] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
void IEditableLineSizeHost.set_Item(int index, double value)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Double |
value |
|
Declaration
void ILineSizeHost.add_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Declaration
double ILineSizeHost.GetDefaultLineSize()
Returns
Declaration
int ILineSizeHost.GetFooterLineCount()
Returns
Declaration
int ILineSizeHost.GetHeaderLineCount()
Returns
Declaration
bool ILineSizeHost.GetHidden(int index, out int repeatValueCount)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Int32 |
repeatValueCount |
|
Returns
Declaration
int ILineSizeHost.GetLineCount()
Returns
Declaration
double ILineSizeHost.GetSize(int index, out int repeatValueCount)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Int32 |
repeatValueCount |
|
Returns
Declaration
void ILineSizeHost.remove_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Implements
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable
System.ComponentModel.ISupportInitialize