ITableColumnDefinition.FilterPresets 属性

定义

始终作为此列表的可筛选项存在的字符串。

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”, ....}。

适用于