ITableColumnDefinition.FilterPresets 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此清單一律存在為可篩選專案的字串。
public:
property System::Collections::Generic::IEnumerable<System::String ^> ^ FilterPresets { System::Collections::Generic::IEnumerable<System::String ^> ^ get(); };
public System.Collections.Generic.IEnumerable<string> FilterPresets { get; }
member this.FilterPresets : seq<string>
Public ReadOnly Property FilterPresets As IEnumerable(Of String)
屬性值
傳回 IEnumerable<T>。
範例
public IEnumerable{string} FilterPresets => new string[]
{
// Always show "Errors", "Warnings" and "Messages" as filtering options even if there are no errors
"Errors",
"Warnings",
"Messages",
};
備註
例如,如果您想要一律顯示「錯誤」、「警告」和「訊息」作為篩選選項,即使沒有任何錯誤,仍會傳回新的 List. (3) {“Errors”, ....}。