TimelineCollection 클래스

정의

Timeline 개체(특정 형식 애니메이션)의 컬렉션을 나타냅니다. TimelineCollection은 Storyboard.Children 속성의 값입니다.

public ref class TimelineCollection sealed : IIterable<Timeline ^>, IVector<Timeline ^>
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TimelineCollection final : IIterable<Timeline>, IVector<Timeline>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class TimelineCollection final : IIterable<Timeline>, IVector<Timeline>
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TimelineCollection : IEnumerable<Timeline>, IList<Timeline>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TimelineCollection : IEnumerable<Timeline>, IList<Timeline>
Public NotInheritable Class TimelineCollection
Implements IEnumerable(Of Timeline), IList(Of Timeline)
<Storyboard ...>
  oneOrMoreChildTimelines
</Storyboard>
상속
Object Platform::Object IInspectable TimelineCollection
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

C# 또는 Microsoft Visual Basic에서 컬렉션 열거

TimelineCollection은 열거 가능하므로 C#의 foreach 와 같은 언어별 구문을 사용하여 컬렉션의 항목을 열거할 수 있습니다. 컴파일러는 형식 캐스팅을 수행하므로 명시적으로 캐스팅 IEnumerable<Timeline> 할 필요가 없습니다. 예를 들어 GetEnumerator를 호출하려는 경우 명시적으로 캐스팅해야 하는 경우 타임라인 제약 조건을 사용하여 IEnumerable<T>로 캐스팅합니다.

생성자

TimelineCollection()

TimelineCollection 클래스의 새 instance 초기화합니다.

속성

Size

컬렉션의 크기(개수)를 가져옵니다.

메서드

Append(Timeline)

컬렉션에 새 항목을 추가합니다.

Clear()

컬렉션에서 모든 항목을 제거합니다.

First()

컬렉션의 항목을 반복하기 위한 반복기를 반환합니다.

GetAt(UInt32)

지정된 인덱스 에 있는 Timeline 을 반환합니다.

GetMany(UInt32, Timeline[])

반복기를 통해 한 번의 패스로 여러 요소를 검색합니다.

GetView()

컬렉션에 변경할 수 없는 보기를 가져옵니다.

IndexOf(Timeline, UInt32)

지정된 항목의 인덱스를 검색합니다.

InsertAt(UInt32, Timeline)

지정된 인덱스에 지정된 항목을 삽입합니다.

RemoveAt(UInt32)

지정된 인덱스에서 항목을 제거합니다.

RemoveAtEnd()

컬렉션의 마지막 항목을 제거합니다.

ReplaceAll(Timeline[])

처음에 컬렉션을 지운 다음 제공된 배열을 새 항목으로 삽입합니다.

SetAt(UInt32, Timeline)

지정된 인덱스에서 값을 지정된 Timeline 값으로 설정합니다.

적용 대상

추가 정보