Ejemplo n.º 1
0
        /// <summary>Установка значений стилей</summary>
        /// <param name="rDict"></param>
        public void SetStyle(IReadOnlyDictionary <string, string> rDict)
        {
            switch (Type)
            {
            case FeatureType.TABFC_Point:
            case FeatureType.TABFC_MultiPoint:
                SetSymbol(rDict);
                break;

            case FeatureType.TABFC_FontPoint:
                SetSymbol(rDict);
                MiApi.mitab_c_set_font(Handle, GetStringPr(rDict, "font", "Arial"));
                break;

            case FeatureType.TABFC_Text:
                MiApi.mitab_c_set_text(Handle, GetStringPr(rDict, "text", "text"));
                MiApi.mitab_c_set_font(Handle, GetStringPr(rDict, "font", "Arial"));
                SetTextDisplay(rDict);
                break;

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

            case FeatureType.TABFC_Ellipse:
                SetBrush(rDict);
                SetPen(rDict);
                break;

            case FeatureType.TABFC_Region:
                SetBrush(rDict);
                SetPen(rDict);
                break;

            case FeatureType.TABFC_Rectangle:
                SetBrush(rDict);
                SetPen(rDict);
                break;

            case FeatureType.TABFC_NoGeom:
                break;

            case FeatureType.TABFC_CustomPoint:
                break;

            case FeatureType.TABFC_Arc:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }