Gets the visible
Column at the specified index.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public Column this[
int index
] { get; } |
Visual Basic |
---|
Public ReadOnly Default Property Item (
index As Integer
) As Column
Get |
Visual C++ |
---|
public:
property Column^ default[int index] {
Column^ get (int index);
} |
F# |
---|
member Item : Column with get
|
Parameters
- index
- Type: System..::..Int32
Property Value
Type:
ColumnThe
Column if found. Otherwise
null.
Examples
| Copy |
---|
public void VisibleColumnsExample(Grid grid)
{
Header header = new Header();
header.Add(new Column("Column1"));
header.Add(new Column("Column2"));
header.Add(new Column("Column3"));
grid.Headers.Add(header);
Console.WriteLine("Visible columns count: {0}", header.VisibleColumns.Count);
header[1].Visible = false;
Console.WriteLine("Columns count: {0}", header.Count);
Console.WriteLine("Visible columns count: {0}", header.VisibleColumns.Count);
header.VisibleColumns[1].VisibleIndex = 0;
foreach (Column column in header.VisibleColumns)
{
Console.WriteLine("Visible column: id = '{0}', index = {1}, visible index = {2}", column.Id, column.Index, column.VisibleIndex);
}
header.VisibleColumns.Clear();
Console.WriteLine("Columns count: {0}", header.Count);
Console.WriteLine("Visible columns count: {0}", header.VisibleColumns.Count);
}
Visible columns count: 3
Columns count: 3
Visible columns count: 2
Visible column: id = 'Column3', index = 2, visible index = 0
Visible column: id = 'Column1', index = 0, visible index = 1
Columns count: 3
Visible columns count: 0 |
See Also