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
구현

예제

다음 예제에서는 a를 KeyGesture 만들고 에 추가 InputGestureCollection 합니다 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)

생성자

Name Description
InputGestureCollection()

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

InputGestureCollection(IList)

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

속성

Name Description
Count

InputGesture항목의 InputGestureCollection 개수를 가져옵니다.

IsFixedSize

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

IsReadOnly

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

IsSynchronized

동기화 InputGestureCollection 되는지 여부를 나타내는 값을 가져옵니다(스레드로부터 안전).

Item[Int32]

지정된 인덱스에서 InputGesture 값을 가져오거나 설정합니다.

SyncRoot

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

메서드

Name Description
Add(InputGesture)

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

AddRange(ICollection)

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

Clear()

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

Contains(InputGesture)

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

CopyTo(InputGesture[], Int32)

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

Equals(Object)

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

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

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

GetHashCode()

기본 해시 함수로 사용됩니다.

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

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

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

InputGesture항목에 지정된 InputGestureCollection 첫 번째 항목을 검색합니다.

Insert(Int32, InputGesture)

지정된 인덱스에 지정된 InputGestureInputGestureCollection 인덱스를 삽입합니다.

MemberwiseClone()

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

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

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

RemoveAt(Int32)

지정된 인덱스에 지정된 InputGesture 인덱스를 InputGestureCollection제거합니다.

Seal()

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

ToString()

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

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
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).

확장명 메서드

Name Description
AsParallel(IEnumerable)

쿼리의 병렬 처리를 사용하도록 설정합니다.

AsQueryable(IEnumerable)

IEnumerable IQueryable변환합니다.

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

적용 대상

추가 정보