DesignerAutoFormatCollection.Remove(DesignerAutoFormat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除指定的 DesignerAutoFormat 物件。
public:
void Remove(System::Web::UI::Design::DesignerAutoFormat ^ format);
public void Remove(System.Web.UI.Design.DesignerAutoFormat format);
member this.Remove : System.Web.UI.Design.DesignerAutoFormat -> unit
Public Sub Remove (format As DesignerAutoFormat)
參數
- format
- DesignerAutoFormat
從收藏中移除。DesignerAutoFormat
備註
此 Remove 方法會從集合中移除 的 format 首次出現。 若 DesignerAutoFormatCollection 物件不包含 format,集合保持不變。 沒例外拋出。
該Remove方法透過對Equals被比較的物件使用該DesignerAutoFormat方法來判定相等。
該 Remove 方法執行線性搜尋;因此,平均執行時間與該值成正比 Count 。
若要從集合中移除特定索引的格式,請使用以下 RemoveAt 方法。 要從收藏中移除所有格式,請使用該 Clear 方法。
Note
當你從集合中移除項目時,集合中後續項目的索引值會改變。