Themes for WinForms | ComponentOne
C1.Win.C1Themes.Extended.4.8 Assembly / C1.Win.C1Themes Namespace / C1ThemePicker Class / Filter Property
Example

In This Topic
    Filter Property
    In This Topic
    Gets or sets the regular expression to determine theme names which should be displayed in drop-down list.
    Syntax
    'Declaration
     
    Public Property Filter As System.String
    public System.string Filter {get; set;}
    Remarks
    The regular expression specified by the filter allows you to leave only the necessary themes in the drop-down list and in ThemeNames array.
    Example
    The code below in the drop-down list will leave only the names of themes containing "one" and "silver": 'BeigeOne', 'MacSilver', 'Office2007Silver', 'Office2010Silver'. Also, the string array ThemeNames will contain the same elements.
    var c1ThemePicker1 = new C1ThemePicker();
    c1ThemePicker1.Filter = "(one|silver)";
    See Also