PathFigureCollection Klasse

Definition

Stellt eine Auflistung von PathFigure-Objekten dar, die zusammen die Geometrie einer PathGeometry bilden.

public ref class PathFigureCollection sealed : IIterable<PathFigure ^>, IVector<PathFigure ^>
/// [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 PathFigureCollection final : IIterable<PathFigure>, IVector<PathFigure>
/// [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 PathFigureCollection final : IIterable<PathFigure>, IVector<PathFigure>
[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 PathFigureCollection : IEnumerable<PathFigure>, IList<PathFigure>
[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 PathFigureCollection : IEnumerable<PathFigure>, IList<PathFigure>
Public NotInheritable Class PathFigureCollection
Implements IEnumerable(Of PathFigure), IList(Of PathFigure)
<object>
  <object.property>
    oneOrMorePathFigures
  </object.property>
</object>
- or -
<object property="drawingCommands" ...>
Vererbung
Object Platform::Object IInspectable PathFigureCollection
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Auflisten der Sammlung in C# oder Microsoft Visual Basic

Eine PathFigureCollection ist aufzählbar, sodass Sie sprachspezifische Syntax wie foreach in C# verwenden können, um die Elemente in der Auflistung aufzulisten. Der Compiler führt die Typumwandlung für Sie durch, und Sie müssen nicht explizit in IEnumerable<PathFigure> umwandeln. Wenn Sie eine explizite Umwandlung durchführen müssen, z. B. wenn Sie GetEnumerator aufrufen möchten, wandeln Sie mit einer PathFigure-Einschränkung in IEnumerable<T> um.

Konstruktoren

PathFigureCollection()

Initialisiert eine neue instance der PathFigureCollection-Klasse.

Eigenschaften

Size

Ruft die Größe (Anzahl) der Auflistung ab.

Methoden

Append(PathFigure)

Fügt der Auflistung ein neues Element hinzu.

Clear()

Entfernt alle Elemente aus der Auflistung.

First()

Gibt einen Iterator für die Elemente in der Auflistung zurück.

GetAt(UInt32)

Gibt das Element zurück, das sich am angegebenen Index befindet.

GetMany(UInt32, PathFigure[])

Ruft mehrere Elemente in einem einzigen Durchlauf durch den Iterator ab.

GetView()

Ruft eine unveränderliche Ansicht in die Auflistung ab.

IndexOf(PathFigure, UInt32)

Ruft den Index des angegebenen Elements ab.

InsertAt(UInt32, PathFigure)

Fügt das angegebene Element am angegebenen Index ein.

RemoveAt(UInt32)

Entfernt das Element am angegebenen Index.

RemoveAtEnd()

Entfernt das letzte Element in der Auflistung.

ReplaceAll(PathFigure[])

Löscht zunächst die Auflistung und fügt dann das bereitgestellte Array als neue Elemente ein.

SetAt(UInt32, PathFigure)

Legt den Wert am angegebenen Index auf den angegebenen PathFigure-Wert fest.

Gilt für:

Weitere Informationen