DependencyObjectCollection.First Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the iterator for iteration over the items in the collection.
public:
virtual IIterator<DependencyObject ^> ^ First() = IIterable<DependencyObject ^>::First;
IIterator<DependencyObject> First();
public IIterator<DependencyObject> First();
function first()
Public Function First () As IIterator(Of DependencyObject)
Returns
The iterator object. The iterator's current position is at the 0-index position, or at the collection end if the collection is empty.
Implements
Remarks
You can iterate through a DependencyObjectCollection in C# or Microsoft Visual Basic. In many cases, such as using foreach syntax, the compiler does this casting for you and you won't need to cast to IEnumerable<DependencyObject>
explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable with a DependencyObject constraint.
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla