共用方式為


UrlEditor.Filter 屬性

定義

取得編輯器的檔名過濾字串。 這用來判斷對話框檔案列表中出現的項目。

protected:
 virtual property System::String ^ Filter { System::String ^ get(); };
protected virtual string Filter { get; }
member this.Filter : string
Protected Overridable ReadOnly Property Filter As String

屬性值

一個包含對話框中檔案過濾選項資訊的字串。

備註

Filter 屬性指定所有檔案的過濾字串(*.*)。

過濾字串包含一個或多個過濾器選項。 每個濾波器選項包含濾波器的描述,接著是垂直條(|)和濾波器圖案。 不同過濾選項的字串由垂直條分隔。

以下是一個包含兩個篩選選項的濾波器字串範例:

Text Files (*.txt)|*.txt|All Files (*.*)|*.*」。

你可以在濾波器選項中指定多個濾波器模式,方法是用分號分開。 以下是一個濾波器字串的範例,其中第一個濾波器選項指定三種濾波器模式:

Text Files(*.txt;*.text;*.lst)|*.txt;*.text;*.lst|All Files (*.*)|*.*」。

適用於