InputGestureCollection Sınıf
Tanım
Sıralı bir nesne koleksiyonunu temsil eder InputGesture .Represents an ordered collection of InputGesture objects.
public ref class InputGestureCollection sealed : System::Collections::IList
public sealed class InputGestureCollection : System.Collections.IList
type InputGestureCollection = class
interface ICollection
interface IEnumerable
interface IList
type InputGestureCollection = class
interface IList
interface ICollection
interface IEnumerable
Public NotInheritable Class InputGestureCollection
Implements IList
- Devralma
-
InputGestureCollection
- Uygulamalar
Örnekler
Aşağıdaki örnek bir oluşturur KeyGesture ve ' a ekler InputGestureCollection RoutedCommand .The following example creates a KeyGesture and adds it to the InputGestureCollection of a RoutedCommand.
<Window.InputBindings>
<KeyBinding Key="B"
Modifiers="Control"
Command="ApplicationCommands.Open" />
</Window.InputBindings>
KeyGesture OpenCmdKeyGesture = new KeyGesture(
Key.B,
ModifierKeys.Control);
ApplicationCommands.Open.InputGestures.Add(OpenCmdKeyGesture);
Dim OpenCmdKeyGesture As New KeyGesture(Key.B, ModifierKeys.Control)
ApplicationCommands.Open.InputGestures.Add(OpenCmdKeyGesture)
Oluşturucular
InputGestureCollection() |
InputGestureCollection sınıfının yeni bir örneğini başlatır.Initializes a new instance of the InputGestureCollection class. |
InputGestureCollection(IList) |
InputGestureCollectionBelirtilen öğeleri kullanarak sınıfının yeni bir örneğini başlatır IList .Initializes a new instance of the InputGestureCollection class using the elements in the specified IList. |
Özellikler
Count |
Bu öğe sayısını alır InputGesture InputGestureCollection .Gets the number of InputGesture items in this InputGestureCollection. |
IsFixedSize |
Bunun sabit bir boyuta sahip olup olmadığını gösteren bir değer alır InputGestureCollection .Gets a value that indicates whether this InputGestureCollection has a fixed size. |
IsReadOnly |
Bu değerin salt okunurdur olup olmadığını gösteren bir değer alır InputGestureCollection .Gets a value that indicates whether this InputGestureCollection is read-only. Varsayılan değer: |
IsSynchronized |
Bunun InputGestureCollection eşitlenip eşitlenmediğini (iş parçacığı açısından güvenli) gösteren bir değer alır.Gets a value that indicates whether this InputGestureCollection is synchronized (thread safe). |
Item[Int32] |
Belirtilen dizindeki öğesini alır veya ayarlar InputGesture .Gets or set the InputGesture at the specified index. |
SyncRoot |
Bu, erişimi eşitlenmek için kullanılabilecek bir nesne alır InputGestureCollection .Gets an object that can be used to synchronize access to this InputGestureCollection. |
Yöntemler
Add(InputGesture) |
Belirtilen öğesine ekler InputGesture InputGestureCollection .Adds the specified InputGesture to this InputGestureCollection. |
AddRange(ICollection) |
Belirtilen öğelerini ICollection bunun sonuna ekler InputGestureCollection .Adds the elements of the specified ICollection to the end of this InputGestureCollection. |
Clear() |
Tüm öğeleri InputGestureCollection koleksiyonundan kaldırır.Removes all elements from the InputGestureCollection. |
Contains(InputGesture) |
Belirtilen koleksiyonda olup olmadığını belirler InputGesture .Determines whether the specified InputGesture is in the collection. |
CopyTo(InputGesture[], Int32) |
İçindeki tüm öğeleri, InputGestureCollection hedef dizinin belirtilen dizininden başlayarak belirtilen tek boyutlu diziye kopyalar.Copies all of the items in the InputGestureCollection to the specified one-dimensional array, starting at the specified index of the target array. |
Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
GetEnumerator() |
Bu ile yinelenen bir Numaralandırıcı alır InputGestureCollection .Gets an enumerator that iterates through this InputGestureCollection. |
GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
IndexOf(InputGesture) |
Bu öğesinde belirtilen ilk oluşumunu arar InputGesture InputGestureCollection .Searches for the first occurrence of the specified InputGesture in this InputGestureCollection. |
Insert(Int32, InputGesture) |
Belirtilen dizinde belirtilen InputGesture dizine ekler InputGestureCollection .Inserts the specified InputGesture into this InputGestureCollection at the specified index. |
MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
Remove(InputGesture) |
Belirtilen ilk oluşumunu InputGesture Bu öğesinden kaldırır InputGestureCollection .Removes the first occurrence of the specified InputGesture from this InputGestureCollection. |
RemoveAt(Int32) |
Belirtilen dizininde belirtilen InputGesture dizini kaldırır InputGestureCollection .Removes the specified InputGesture at the specified index of this InputGestureCollection. |
Seal() |
Bunu InputGestureCollection salt okunurdur olarak ayarlar.Sets this InputGestureCollection to read-only. |
ToString() |
Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object. (Devralındığı yer: Object) |
Belirtik Arabirim Kullanımları
ICollection.CopyTo(Array, Int32) |
Bu üyenin açıklaması için bkz CopyTo(Array, Int32) ..For a description of this member, see CopyTo(Array, Int32). |
IList.Add(Object) |
Bu üyenin açıklaması için bkz Add(Object) ..For a description of this member, see Add(Object). |
IList.Contains(Object) |
Bu üyenin açıklaması için bkz Contains(Object) ..For a description of this member, see Contains(Object). |
IList.IndexOf(Object) |
Bu üyenin açıklaması için bkz IndexOf(Object) ..For a description of this member, see IndexOf(Object). |
IList.Insert(Int32, Object) |
Bu üyenin açıklaması için bkz Insert(Int32, Object) ..For a description of this member, see Insert(Int32, Object). |
IList.Item[Int32] |
Bu üyenin açıklaması için bkz Item[Int32] ..For a description of this member, see Item[Int32]. |
IList.Remove(Object) |
Bu üyenin açıklaması için bkz Remove(Object) ..For a description of this member, see Remove(Object). |
Uzantı Metotları
Cast<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen türe yayınlar.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen bir türe göre filtreler.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Bir sorgunun paralelleştirilmesini mümkün hale getirme.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Bir IEnumerable öğesine dönüştürür IQueryable .Converts an IEnumerable to an IQueryable. |