public object PropertyPanel(ILabelRenderer renderer, IFeatureLayer layer)
        {
            _renderer = renderer as SimpleLabelRenderer;
            if (layer != null)
            {
                _fc = layer.FeatureClass;
            }

            InitializeComponent();

            MakeGUI();

            return(panel1);
        }
        public FormLineLabellingOrientation(SimpleLabelRenderer renderer)
        {
            InitializeComponent();

            switch (renderer.CartoLineLabelling)
            {
            case SimpleLabelRenderer.CartographicLineLabeling.Parallel:
                btnParallel.Checked = true;
                break;

            case SimpleLabelRenderer.CartographicLineLabeling.Horizontal:
                btnHorizontal.Checked = true;
                break;

            case SimpleLabelRenderer.CartographicLineLabeling.Perpendicular:
                btnPerpenticular.Checked = true;
                break;

            case SimpleLabelRenderer.CartographicLineLabeling.CurvedText:
                btnCurvedText.Checked = true;
                break;
            }
        }