예제 #1
0
        /// <summary>Получить стили</summary>
        /// <returns></returns>
        public Dictionary <string, string> GetStyle()
        {
            var rDict = new Dictionary <string, string>();

            switch (Type)
            {
            case FeatureType.TABFC_Point:
            case FeatureType.TABFC_MultiPoint:
                GetSymbol(rDict);
                break;

            case FeatureType.TABFC_FontPoint:
                GetSymbol(rDict);
                rDict.Add("font", MiApi.mitab_c_get_font(Handle));
                break;

            case FeatureType.TABFC_Text:
                rDict.Add("text", MiApi.mitab_c_get_text(Handle));
                rDict.Add("font", MiApi.mitab_c_get_font(Handle));
                GetTextDisplay(rDict);
                break;

            case FeatureType.TABFC_Polyline:
                GetPen(rDict);
                break;

            case FeatureType.TABFC_Ellipse:
                GetBrush(rDict);
                GetPen(rDict);
                break;

            case FeatureType.TABFC_Region:
                GetBrush(rDict);
                GetPen(rDict);
                break;

            case FeatureType.TABFC_Rectangle:
                GetBrush(rDict);
                GetPen(rDict);
                break;
            }
            return(rDict);
        }