Show / Hide Table of Contents

Class Selection

A class that holds a selected item.

Inheritance
System.Object
Selection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Collections.ObjectModel
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public sealed class Selection

Constructors

| Improve this Doc View Source

Selection(Nullable<Int32>, Object)

Initializes an instance of the Selection class.

Declaration
public Selection(int? index, object item)
Parameters
Type Name Description
System.Nullable<System.Int32> index

The index of the selected item within the source collection.

System.Object item

The selected item.

| Improve this Doc View Source

Selection(Object)

Initializes an instance of the Selection class.

Declaration
public Selection(object item)
Parameters
Type Name Description
System.Object item

The selected item.

Properties

| Improve this Doc View Source

Index

Gets the index of the selection within the source collection.

Declaration
public int? Index { get; }
Property Value
Type Description
System.Nullable<System.Int32>
| Improve this Doc View Source

Item

Gets the selected item.

Declaration
public object Item { get; }
Property Value
Type Description
System.Object
  • Improve this Doc
  • View Source