ByteKeyFrameCollection.Item[Int32] 属性

定义

获取或设置位于指定索引位置的 ByteKeyFrameGets or sets the ByteKeyFrame at the specified index position.

public:
 property System::Windows::Media::Animation::ByteKeyFrame ^ default[int] { System::Windows::Media::Animation::ByteKeyFrame ^ get(int index); void set(int index, System::Windows::Media::Animation::ByteKeyFrame ^ value); };
public System.Windows.Media.Animation.ByteKeyFrame this[int index] { get; set; }
member this.Item(int) : System.Windows.Media.Animation.ByteKeyFrame with get, set
Default Public Property Item(index As Integer) As ByteKeyFrame

参数

index
Int32

要获取或设置的 ByteKeyFrame 的从零开始的索引。The zero-based index of the ByteKeyFrame to get or set.

属性值

位于指定索引处的 ByteKeyFrameThe ByteKeyFrame at the specified index.

异常

修改集合的尝试无效,因为集合已被冻结(其 IsFrozen 属性为 true)。The attempt to modify the collection is invalid because the collection is frozen (its IsFrozen property is true).

index 小于零。index is less than zero.

-or- index 等于或大于 Countindex is equal to or greater than Count.

适用于