語言

PathFigureCollection.Add(PathFigure) 方法

定義

在收藏的最後加上 a PathFigure 。

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

參數

value
PathFigure

PathFigure加入收藏。

實作

例外狀況

value 是 null。

這是 PathFigureCollection 唯讀的。

-或-

它 PathFigureCollection 有固定尺寸。

備註

由於 PathFigure 物件源自 Freezable,使用時會被複製。 因此,之後你可能無法用原始PathFigure物件取回或移除你加入收藏的物件PathFigure。 收藏中的 是 PathFigure 原始 PathFigure 版本的複製品,與你新增的版本不同 PathFigure 。

這個實作如果你嘗試加入ArgumentException(Nothing)參考,會拋出一個

適用於