DrawingCollection.Remove(Drawing) 方法

定義

Drawing 中移除指定 DrawingCollection 的第一個符合項目。

public:
 virtual bool Remove(System::Windows::Media::Drawing ^ value);
public bool Remove (System.Windows.Media.Drawing value);
abstract member Remove : System.Windows.Media.Drawing -> bool
override this.Remove : System.Windows.Media.Drawing -> bool
Public Function Remove (value As Drawing) As Boolean

參數

value
Drawing

要從這個集合中移除的項目。

傳回

如果作業成功,則為 true,否則為 false

實作

例外狀況

DrawingCollection 為唯讀。

-或-

DrawingCollection 具有固定的大小。

適用於

另請參閱