PathSegmentCollection.Add(PathSegment) Método

Definição

Acrescenta um a PathSegment ao final da coleção.

public:
 virtual void Add(System::Windows::Media::PathSegment ^ value);
public void Add(System.Windows.Media.PathSegment value);
abstract member Add : System.Windows.Media.PathSegment -> unit
override this.Add : System.Windows.Media.PathSegment -> unit
Public Sub Add (value As PathSegment)

Parâmetros

value
PathSegment

O segmento a acrescentar à coleção.

Implementações

Exceções

value é null.

É PathSegmentCollection só de leitura.

-ou-

Tem PathSegmentCollection um tamanho fixo.

Observações

Como PathSegment os objetos derivam de Freezable, são copiados quando são usados. Portanto, pode não conseguir mais tarde recuperar ou remover o que PathSegment adicionou à coleção usando o objeto original PathSegment ; o PathSegment na coleção é uma cópia do original PathSegment e é considerado diferente PathSegment daquele que adicionou.

Ao contrário das implementações típicas de ICollection<T>.Add, esta implementação lança um ArgumentException se tentar adicionar uma referência null (Nothing).

Aplica-se a

Ver também