Search Results for

    Show / Hide Table of Contents

    Class ColorUtilities

    This class provides Color struct methods which are present in .NET framework but are missing in Silverlight.

    Inheritance
    Object
    ColorUtilities
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.Formatting
    Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities.dll
    Syntax
    public static class ColorUtilities

    Properties

    KnownColors

    Collection of known named colors.

    Declaration
    public static Dictionary<string, Color> KnownColors { get; }
    Property Value
    Type Description
    Dictionary<String, Color>

    Methods

    FromName(String)

    Creates Color struct by the color name.

    Declaration
    public static Color FromName(string colorName)
    Parameters
    Type Name Description
    String colorName

    Color name (refer to http://msdn.microsoft.com/en-us/library/system.drawing.knowncolor.aspx for the list of known colors)

    Returns
    Type Description
    Color

    Created Color struct

    GetLocalizedColorName(String)

    Returns name of a color specific to current culture.

    Declaration
    public static string GetLocalizedColorName(string defaultColorName)
    Parameters
    Type Name Description
    String defaultColorName

    Default name of a color.

    Returns
    Type Description
    String

    Name of a color defined for current culture.

    IsKnownName(String)

    Tests whether provided color name is known.

    Declaration
    public static bool IsKnownName(string colorName)
    Parameters
    Type Name Description
    String colorName

    Color name

    Returns
    Type Description
    Boolean

    True if the color is known, false otherwise.

    In this article
    Back to top Generated by DocFX