InputGestureCollection 클래스

정의

InputGesture 개체의 정렬된 컬렉션을 나타냅니다.

public ref class InputGestureCollection sealed : System::Collections::IList
public sealed class InputGestureCollection : System.Collections.IList
type InputGestureCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
type InputGestureCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
Public NotInheritable Class InputGestureCollection
Implements IList
상속
InputGestureCollection
구현

예제

다음 예제에서는 KeyGesture 에 추가 합니다 InputGestureCollectionRoutedCommand합니다.

<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)

생성자

InputGestureCollection()

InputGestureCollection 클래스의 새 인스턴스를 초기화합니다.

InputGestureCollection(IList)

지정된 InputGestureCollection의 요소를 사용하여 IList 클래스의 새 인스턴스를 초기화합니다.

속성

Count

InputGesture에 있는 InputGestureCollection 항목의 수를 가져옵니다.

IsFixedSize

InputGestureCollection 의 크기가 고정되어 있는지 여부를 나타내는 값을 가져옵니다.

IsReadOnly

InputGestureCollection이 읽기 전용인지 여부를 나타내는 값을 가져옵니다. 기본값은 false입니다.

IsSynchronized

InputGestureCollection이 동기화되어 스레드로부터 안전하게 보호되는지 여부를 나타내는 값을 가져옵니다.

Item[Int32]

지정된 인덱스에 있는 InputGesture를 가져오거나 설정합니다.

SyncRoot

InputGestureCollection에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.

메서드

Add(InputGesture)

지정된 InputGesture를 이 InputGestureCollection에 추가합니다.

AddRange(ICollection)

지정된 ICollection의 요소를 이 InputGestureCollection의 끝에 추가합니다.

Clear()

InputGestureCollection에서 요소를 모두 제거합니다.

Contains(InputGesture)

지정된 InputGesture가 컬렉션에 있는지 여부를 확인합니다.

CopyTo(InputGesture[], Int32)

대상 배열의 지정된 인덱스부터 시작하여 InputGestureCollection의 모든 항목을 지정된 1차원 배열에 복사합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetEnumerator()

InputGestureCollection을 반복하는 열거자를 가져옵니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(InputGesture)

InputGesture에서 첫 번째로 나타나는 지정된 InputGestureCollection을 검색합니다.

Insert(Int32, InputGesture)

InputGesture의 지정된 인덱스 위치에 지정된 InputGestureCollection을 삽입합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
Remove(InputGesture)

InputGesture에서 지정된 InputGestureCollection의 첫 번째 항목을 제거합니다.

RemoveAt(Int32)

InputGesture의 지정된 인덱스에 있는 지정된 InputGestureCollection을 제거합니다.

Seal()

InputGestureCollection을 읽기 전용으로 설정합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

ICollection.CopyTo(Array, Int32)

이 멤버에 대한 설명은 CopyTo(Array, Int32)를 참조하세요.

IList.Add(Object)

이 멤버에 대한 설명은 Add(Object)를 참조하세요.

IList.Contains(Object)

이 멤버에 대한 설명은 Contains(Object)를 참조하세요.

IList.IndexOf(Object)

이 멤버에 대한 설명은 IndexOf(Object)를 참조하세요.

IList.Insert(Int32, Object)

이 멤버에 대한 설명은 Insert(Int32, Object)를 참조하세요.

IList.Item[Int32]

이 멤버에 대한 설명은 Item[Int32]를 참조하세요.

IList.Remove(Object)

이 멤버에 대한 설명은 Remove(Object)를 참조하세요.

확장 메서드

Cast<TResult>(IEnumerable)

IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsQueryable(IEnumerable)

IEnumerableIQueryable로 변환합니다.

적용 대상

추가 정보