Перейти к основному содержимому

Class BaseVerticalCollectionViewExtensions

Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll

Provides extension methods for BaseVerticalCollectionView.

public static class BaseVerticalCollectionViewExtensions

Inheritance​

object ← BaseVerticalCollectionViewExtensions

Methods​

AddCanStartDrag<T>(T, Func<CanStartDragArgs, bool>)​

Subscribes to the canStartDrag callback.

public static T AddCanStartDrag<T>(this T element, Func<CanStartDragArgs, bool> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<CanStartDragArgs, bool>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddDragAndDropUpdate<T>(T, Func<HandleDragAndDropArgs, DragVisualMode>)​

Subscribes to the dragAndDropUpdate callback.

public static T AddDragAndDropUpdate<T>(this T element, Func<HandleDragAndDropArgs, DragVisualMode> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<HandleDragAndDropArgs, DragVisualMode>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddHandleDrop<T>(T, Func<HandleDragAndDropArgs, DragVisualMode>)​

Subscribes to the handleDrop callback.

public static T AddHandleDrop<T>(this T element, Func<HandleDragAndDropArgs, DragVisualMode> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<HandleDragAndDropArgs, DragVisualMode>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddItemIndexChanged<T>(T, Action<int, int>)​

Subscribes to the itemIndexChanged event.

public static T AddItemIndexChanged<T>(this T element, Action<int, int> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<int, int>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddItemsChosen<T>(T, Action<IEnumerable<object>>)​

Subscribes to the itemsChosen event.

public static T AddItemsChosen<T>(this T element, Action<IEnumerable<object>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<object>>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddItemsSourceChanged<T>(T, Action)​

Subscribes to the itemsSourceChanged event.

public static T AddItemsSourceChanged<T>(this T element, Action value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddSelectedIndicesChanged<T>(T, Action<IEnumerable<int>>)​

Subscribes to the selectedIndicesChanged event.

public static T AddSelectedIndicesChanged<T>(this T element, Action<IEnumerable<int>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<int>>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddSelectionChanged<T>(T, Action<IEnumerable<object>>)​

Subscribes to the selectionChanged event.

public static T AddSelectionChanged<T>(this T element, Action<IEnumerable<object>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<object>>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

AddSetupDragAndDrop<T>(T, Func<SetupDragAndDropArgs, StartDragArgs>)​

Subscribes to the setupDragAndDrop callback.

public static T AddSetupDragAndDrop<T>(this T element, Func<SetupDragAndDropArgs, StartDragArgs> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<SetupDragAndDropArgs, StartDragArgs>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveCanStartDrag<T>(T, Func<CanStartDragArgs, bool>)​

Unsubscribes from the canStartDrag callback.

public static T RemoveCanStartDrag<T>(this T element, Func<CanStartDragArgs, bool> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<CanStartDragArgs, bool>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveDragAndDropUpdate<T>(T, Func<HandleDragAndDropArgs, DragVisualMode>)​

Unsubscribes from the dragAndDropUpdate callback.

public static T RemoveDragAndDropUpdate<T>(this T element, Func<HandleDragAndDropArgs, DragVisualMode> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<HandleDragAndDropArgs, DragVisualMode>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveHandleDrop<T>(T, Func<HandleDragAndDropArgs, DragVisualMode>)​

Unsubscribes from the handleDrop callback.

public static T RemoveHandleDrop<T>(this T element, Func<HandleDragAndDropArgs, DragVisualMode> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<HandleDragAndDropArgs, DragVisualMode>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveItemIndexChanged<T>(T, Action<int, int>)​

Unsubscribes from the itemIndexChanged event.

public static T RemoveItemIndexChanged<T>(this T element, Action<int, int> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<int, int>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveItemsChosen<T>(T, Action<IEnumerable<object>>)​

Unsubscribes from the itemsChosen event.

public static T RemoveItemsChosen<T>(this T element, Action<IEnumerable<object>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<object>>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveItemsSourceChanged<T>(T, Action)​

Unsubscribes from the itemsSourceChanged event.

public static T RemoveItemsSourceChanged<T>(this T element, Action value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveSelectedIndicesChanged<T>(T, Action<IEnumerable<int>>)​

Unsubscribes from the selectedIndicesChanged event.

public static T RemoveSelectedIndicesChanged<T>(this T element, Action<IEnumerable<int>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<int>>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveSelectionChanged<T>(T, Action<IEnumerable<object>>)​

Unsubscribes from the selectionChanged event.

public static T RemoveSelectionChanged<T>(this T element, Action<IEnumerable<object>> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Action<IEnumerable<object>>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveSetupDragAndDrop<T>(T, Func<SetupDragAndDropArgs, StartDragArgs>)​

Unsubscribes from the setupDragAndDrop callback.

public static T RemoveSetupDragAndDrop<T>(this T element, Func<SetupDragAndDropArgs, StartDragArgs> value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value Func<SetupDragAndDropArgs, StartDragArgs>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetFixedItemHeight<T>(T, float)​

Sets fixedItemHeight.

public static T SetFixedItemHeight<T>(this T element, float value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value float

The fixed item height in pixels.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHorizontalScrollingEnabled<T>(T, bool)​

Sets horizontalScrollingEnabled.

public static T SetHorizontalScrollingEnabled<T>(this T element, bool value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value bool

When true, a horizontal scroll bar is shown when the content does not fit.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetItemsSource<T>(T, IList)​

Sets itemsSource.

public static T SetItemsSource<T>(this T element, IList value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value IList

The items source to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetReorderable<T>(T, bool)​

Sets reorderable.

public static T SetReorderable<T>(this T element, bool value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value bool

When true, items can be reordered by dragging.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetSelectedIndex<T>(T, int)​

Sets selectedIndex.

public static T SetSelectedIndex<T>(this T element, int value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value int

The selected index to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetSelectionType<T>(T, SelectionType)​

Sets selectionType.

public static T SetSelectionType<T>(this T element, SelectionType value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value SelectionType

The selection type to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetShowAlternatingRowBackgrounds<T>(T, AlternatingRowBackground)​

Sets showAlternatingRowBackgrounds.

public static T SetShowAlternatingRowBackgrounds<T>(this T element, AlternatingRowBackground value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value AlternatingRowBackground

The alternating row background mode to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetVirtualizationMethod<T>(T, CollectionVirtualizationMethod)​

Sets virtualizationMethod.

public static T SetVirtualizationMethod<T>(this T element, CollectionVirtualizationMethod value) where T : BaseVerticalCollectionView

Parameters​

element T

The element to modify.

value CollectionVirtualizationMethod

The virtualization method to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.