RowDefinitionCollection 클래스
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
RowDefinition 개체의 순서가 지정된 강력한 형식의 컬렉션에 대한 액세스를 제공합니다.
public ref class RowDefinitionCollection sealed : IIterable<RowDefinition ^>, IVector<RowDefinition ^>
/// [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 RowDefinitionCollection final : IIterable<RowDefinition>, IVector<RowDefinition>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RowDefinitionCollection final : IIterable<RowDefinition>, IVector<RowDefinition>
[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 RowDefinitionCollection : IEnumerable<RowDefinition>, IList<RowDefinition>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RowDefinitionCollection : IEnumerable<RowDefinition>, IList<RowDefinition>
Public NotInheritable Class RowDefinitionCollection
Implements IEnumerable(Of RowDefinition), IList(Of RowDefinition)
<Grid ...>
<Grid.RowDefinitions>
oneOrMoreRowDefinitions
</Grid.RowDefinitions>
</Grid>
- 상속
- 특성
- 구현
디바이스 패밀리 |
Windows 10 (10.0.10240.0에서 도입되었습니다.)
|
API contract |
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
|
RowDefinitionCollection은 열거 가능하므로 C#의 foreach 와 같은 언어별 구문을 사용하여 컬렉션의 항목을 열거할 수 있습니다. 컴파일러는 형식 캐스팅을 수행하며 명시적으로 로 캐스팅 IEnumerable<RowDefinition>
할 필요가 없습니다.
예를 들어 GetEnumerator를 호출하려는 경우 명시적으로 캐스팅해야 하는 경우 RowDefinition 제약 조건을 사용하여 IEnumerable<T>로 캐스팅합니다.
Size |
컬렉션의 크기(개수)를 가져옵니다. |
Append(Row |
컬렉션에 새 항목을 추가합니다. |
Clear() |
컬렉션에서 모든 항목을 제거합니다. |
First() |
컬렉션의 항목에 대한 반복기를 반환합니다. |
Get |
지정된 인덱스 에 있는 RowDefinition 을 반환합니다. |
Get |
반복기를 통해 단일 패스에서 여러 요소를 검색합니다. |
Get |
컬렉션에 변경할 수 없는 보기를 가져옵니다. |
Index |
지정된 항목의 인덱스를 검색합니다. |
Insert |
지정된 인덱스에 지정된 항목을 삽입합니다. |
Remove |
지정된 인덱스에서 항목을 제거합니다. |
Remove |
컬렉션의 마지막 항목을 제거합니다. |
Replace |
처음에 컬렉션을 지운 다음 제공된 배열을 새 항목으로 삽입합니다. |
Set |
지정된 인덱스 값을 지정한 RowDefinition 값으로 설정합니다. |
제품 | 버전 |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |