Is there a system enumeration in .Net for CSS media types?

I was wondering if there is an enum inside .NET that contains all types of media that you can use in css?

Sort of:

/// <summary>
/// List of available media types for css (comments from http://www.w3schools.com/css/css_mediatypes.asp)
/// </summary>
public enum CssMediaType
{
    /// <summary>
    /// Used for all media type devices
    /// </summary>
    all,
    /// <summary>
    /// Used for speech and sound synthesizers
    /// </summary>
    aural,
    /// <summary>
    /// Used for braille tactile feedback devices
    /// </summary>
    braille,
    /// <summary>
    /// Used for paged braille printers
    /// </summary>
    embossed,
    /// <summary>
    /// Used for small or handheld devices
    /// </summary>
    handheld,
    /// <summary>
    /// Used for printers
    /// </summary>
    print,
    /// <summary>
    /// Used for projected presentations, like slides
    /// </summary>
    projection,
    /// <summary>
    /// Used for computer screens
    /// </summary>
    screen,
    /// <summary>
    /// Used for media using a fixed-pitch character grid, like teletypes and terminals
    /// </summary>
    tty,
    /// <summary>
    /// Used for television-type devices
    /// </summary>
    tv
}
+3
source share
1 answer

I never came across one ... but it looks like you already gave him the opportunity :-)

+1
source

Source: https://habr.com/ru/post/1772861/


All Articles