Class ObservableListWrap
Envuelve una lista para proveerla de notificación de cambios en el contenido de la colección.
Inheritance
Implements
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.Mvvm.dll
Syntax
public class ObservableListWrap : ObservableWrapBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanged, IList, ICollection, IEnumerable, INotifyCollectionChanged
Constructors
| Edit this page View SourceObservableListWrap()
Inicializa una nueva instancia de la clase ObservableListWrap.
Declaration
public ObservableListWrap()
ObservableListWrap(IList)
Inicializa una nueva instancia de la clase ObservableListWrap.
Declaration
public ObservableListWrap(IList list)
Parameters
Type | Name | Description |
---|---|---|
IList | list | Lista a establecer como la lista subyacente. |
Properties
| Edit this page View SourceCount
Obtiene la cuenta de elementos contenidos dentro de la colección.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
IsFixedSize
Obtiene un valor que determina si esta lista es de tamaño fijo.
Declaration
public bool IsFixedSize { get; }
Property Value
Type | Description |
---|---|
bool |
IsReadOnly
Obtiene un valor que determina si esta lista es de solo lectura.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
IsSynchronized
Obtiene un valor que indica si el acceso a esta ICollection es sincronizado (seguro para multihilo).
Declaration
public bool IsSynchronized { get; }
Property Value
Type | Description |
---|---|
bool |
this[int]
Permite acceder de forma indexada al contenido de este ObservableListWrap.
Declaration
public object? this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice del elemento a obtener o establecer. |
Property Value
Type | Description |
---|---|
object | El elemento encontrado en el índice especificado dentro de la colección. |
SyncRoot
Obtiene un objeto que puede ser utilizado para sincronizar el acceso al ICollection.
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
object |
UnderlyingList
Obtiene acceso directo a la lista subyacente controlada por este ObservableListWrap.
Declaration
public IList? UnderlyingList { get; }
Property Value
Type | Description |
---|---|
IList |
Methods
| Edit this page View SourceAdd(object?)
Agrega un elemento a este ObservableListWrap.
Declaration
public int Add(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value | Valor a agregar a este ObservableListWrap. |
Returns
Type | Description |
---|---|
int | El índice en el cual ha sido agregado el elemento. |
Clear()
Quita todos los elementos de este ObservableListWrap.
Declaration
public void Clear()
Contains(object?)
Determina si este ObservableListWrap contiene un valor especificado.
Declaration
public override bool Contains(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value | Valor a comprobar. |
Returns
Type | Description |
---|---|
bool | true si este ObservableListWrap contiene el valor especificado, false en caso contrario. |
Overrides
| Edit this page View SourceCopyTo(Array, int)
Copia el contenido de este ObservableListWrap a un arreglo, iniciando en un índice en particular dentro del arreglo.
Declaration
public void CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
Array | array | Arreglo de destino de la copia. |
int | index | Índice dentro del arreglo desde el cual iniciar a copiar. |
IndexOf(object?)
Obtiene el índice de un elemento específico dentro de este ObservableListWrap.
Declaration
public override int IndexOf(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value | Valor del cual obtener el índice dentro de este ObservableListWrap. |
Returns
Type | Description |
---|---|
int | El índice del elemento dentro de este ObservableListWrap. |
Overrides
| Edit this page View SourceInsert(int, object?)
Inserta un elemento dentro de este ObservableListWrap en el índice especificado.
Declaration
public void Insert(int index, object? value)
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice en el cual realizar la inserción. |
object | value | Valor a insertar en este ObservableListWrap. |
OnGetEnumerator()
Obtiene un enumerador que itera sobre la colección.
Declaration
protected override IEnumerator OnGetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator | Un enumerador que puede ser utilizado para iterar sobre la colección. |
Overrides
| Edit this page View SourceRefresh()
Obliga a notificar un cambio en la lista.
Declaration
public override void Refresh()
Overrides
| Edit this page View SourceRefreshAt(int)
Obliga a refrescar el estado de un elemento dentro de la lista.
Declaration
public void RefreshAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice del elemento a refrescar. |
Remove(object?)
Quita un elemento de este ObservableListWrap.
Declaration
public void Remove(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value | valor a quitar de este ObservableListWrap. |
RemoveAt(int)
Quita el elemento en el índice especificado de este ObservableListWrap.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Índice del elemento a remover. |
Substitute(IList)
Sustituye la lista subyacente por una nueva.
Declaration
public void Substitute(IList newList)
Parameters
Type | Name | Description |
---|---|---|
IList | newList | Lista a establecer como la lista subyacente. |