첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Collections.Generic;
using System.Reflection;
using Windows.UI;

#region 알려진 색상 리스트 구하기 - GetKnownColorList()

/// <summary>
/// 알려진 색상 리스트 구하기
/// </summary>
/// <returns>알려진 색상 리스트</returns>
public List<Color> GetKnownColorList()
{
    List<Color> colorList = new List<Color>();

    IEnumerable<PropertyInfo> propertyInfoEnumerable = typeof(Colors).GetTypeInfo().DeclaredProperties;

    foreach(PropertyInfo property in propertyInfoEnumerable)
    {
        Color color = (Color)property.GetValue(null);

        colorList.Add(color);
    }

    return colorList;
}

#endregion
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요