語言

DesignerAutoFormatCollection.Remove(DesignerAutoFormat) 方法

定義

從集合中移除指定的 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

當你從集合中移除項目時,集合中後續項目的索引值會改變。

適用於

另請參閱