Ejemplo n.º 1
0
 private void btnShadowSelector_Click(object sender, EventArgs e)
 {
     try
     {
         frmSymbolSelector selector = new frmSymbolSelector();
         if (selector != null)
         {
             selector.SetStyleGallery(this.istyleGallery_0);
             if (this.ishadow_0 != null)
             {
                 selector.SetSymbol(this.ishadow_0);
             }
             else
             {
                 selector.SetSymbol(new SymbolShadowClass());
             }
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 this.bool_0    = false;
                 this.ishadow_0 = selector.GetSymbol() as IShadow;
                 this.method_4();
                 IStyleGalleryItem styleGalleryItemAt =
                     this.cboShadow.GetStyleGalleryItemAt(this.cboShadow.Items.Count - 1);
                 if (styleGalleryItemAt != null)
                 {
                     if (styleGalleryItemAt.Name == "<定制>")
                     {
                         styleGalleryItemAt.Item = this.ishadow_0;
                     }
                     else
                     {
                         styleGalleryItemAt = new MyStyleGalleryItem
                         {
                             Name = "<定制>",
                             Item = this.ishadow_0
                         };
                         this.cboShadow.Add(styleGalleryItemAt);
                         this.cboShadow.SelectedIndex = this.cboShadow.Items.Count - 1;
                     }
                 }
                 else
                 {
                     styleGalleryItemAt = new MyStyleGalleryItem
                     {
                         Name = "<定制>",
                         Item = this.ishadow_0
                     };
                     this.cboShadow.Add(styleGalleryItemAt);
                     this.cboShadow.SelectedIndex = this.cboShadow.Items.Count - 1;
                 }
                 this.bool_0 = true;
                 this.method_0();
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 private void btnStyleSelector_Click(object sender, EventArgs e)
 {
     try
     {
         frmSymbolSelector selector = new frmSymbolSelector();
         if (selector != null)
         {
             selector.SetStyleGallery(this.m_pSG);
             if (m_pScaleText != null)
             {
                 selector.SetSymbol(m_pScaleText);
             }
             else
             {
                 selector.SetSymbol(new ScaleTextClass());
             }
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 m_pScaleText = selector.GetSymbol() as IScaleText;
                 this.Init();
                 IStyleGalleryItem styleGalleryItemAt =
                     this.cboStyle.GetStyleGalleryItemAt(this.cboStyle.Items.Count - 1);
                 if (styleGalleryItemAt != null)
                 {
                     if (styleGalleryItemAt.Name == "<定制>")
                     {
                         styleGalleryItemAt.Item = m_pScaleText;
                     }
                     else
                     {
                         styleGalleryItemAt = new MyStyleGalleryItem
                         {
                             Name = "<定制>",
                             Item = m_pScaleText
                         };
                         this.cboStyle.Add(styleGalleryItemAt);
                         this.cboStyle.SelectedIndex = this.cboStyle.Items.Count - 1;
                     }
                 }
                 else
                 {
                     styleGalleryItemAt = new MyStyleGalleryItem
                     {
                         Name = "<定制>",
                         Item = m_pScaleText
                     };
                     this.cboStyle.Add(styleGalleryItemAt);
                     this.cboStyle.SelectedIndex = this.cboStyle.Items.Count - 1;
                 }
                 this.ValueChanged();
                 ScaleTextEventsClass.ScaleTextChage(this);
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 3
0
 private void btnStyleSelector_Click(object sender, EventArgs e)
 {
     try
     {
         frmSymbolSelector selector = new frmSymbolSelector();
         if (selector != null)
         {
             selector.SetStyleGallery(this.istyleGallery_0);
             if (m_pScaleBar != null)
             {
                 selector.SetSymbol(m_pScaleBar);
             }
             else
             {
                 selector.SetSymbol(new ScalebarClass());
             }
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 m_pScaleBar = selector.GetSymbol() as IScaleBar;
                 this.method_0();
                 IStyleGalleryItem styleGalleryItemAt =
                     this.cboStyle.GetStyleGalleryItemAt(this.cboStyle.Items.Count - 1);
                 if (styleGalleryItemAt != null)
                 {
                     if (styleGalleryItemAt.Name == "<定制>")
                     {
                         styleGalleryItemAt.Item = m_pScaleBar;
                     }
                     else
                     {
                         styleGalleryItemAt = new MyStyleGalleryItem
                         {
                             Name = "<定制>",
                             Item = m_pScaleBar
                         };
                         this.cboStyle.Add(styleGalleryItemAt);
                         this.cboStyle.SelectedIndex = this.cboStyle.Items.Count - 1;
                     }
                 }
                 else
                 {
                     styleGalleryItemAt = new MyStyleGalleryItem
                     {
                         Name = "<定制>",
                         Item = m_pScaleBar
                     };
                     this.cboStyle.Add(styleGalleryItemAt);
                     this.cboStyle.SelectedIndex = this.cboStyle.Items.Count - 1;
                 }
                 this.method_4();
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 4
0
        private void btnshadowInfo_Click(object sender, EventArgs e)
        {
            IStyleGalleryItem selectStyleGalleryItem = this.cboBackground.GetSelectStyleGalleryItem();
            IShadow           item = null;

            if (selectStyleGalleryItem != null)
            {
                item = selectStyleGalleryItem.Item as IShadow;
            }
            if (item != null)
            {
                frmElementProperty       property = new frmElementProperty();
                ShadowSymbolPropertyPage page     = new ShadowSymbolPropertyPage();
                property.AddPage(page);
                if (property.EditProperties(item))
                {
                    this.bool_0            = false;
                    selectStyleGalleryItem = this.cboShadow.GetStyleGalleryItemAt(this.cboShadow.Items.Count - 1);
                    if (selectStyleGalleryItem != null)
                    {
                        if (selectStyleGalleryItem.Name == "<定制>")
                        {
                            selectStyleGalleryItem.Item = item;
                        }
                        else
                        {
                            selectStyleGalleryItem = new MyStyleGalleryItem
                            {
                                Name = "<定制>",
                                Item = item
                            };
                            this.cboShadow.Add(selectStyleGalleryItem);
                            this.cboShadow.SelectedIndex = this.cboShadow.Items.Count - 1;
                        }
                    }
                    else
                    {
                        selectStyleGalleryItem = new MyStyleGalleryItem
                        {
                            Name = "<定制>",
                            Item = item
                        };
                        this.cboShadow.Add(selectStyleGalleryItem);
                        this.cboShadow.SelectedIndex = this.cboShadow.Items.Count - 1;
                    }
                    this.bool_0 = true;
                }
            }
        }
Ejemplo n.º 5
0
        private void method_1()
        {
            IStyleGalleryItem oO = null;

            if (this.iborder_0 == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = this.iborder_0
                };
            }
            this.cboBorder.SelectStyleGalleryItem(oO);
            if (this.ibackground_0 == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = this.ibackground_0
                };
            }
            this.cboBackground.SelectStyleGalleryItem(oO);
            if (this.ishadow_0 == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = this.ishadow_0
                };
            }
            this.cboShadow.SelectStyleGalleryItem(oO);
            this.method_2();
            this.method_3();
            this.method_4();
        }
Ejemplo n.º 6
0
 private void btnBackgroundInfo_Click(object sender, EventArgs e)
 {
     if (this.ibackground_0 != null)
     {
         frmElementProperty           property = new frmElementProperty();
         BackgroundSymbolPropertyPage page     = new BackgroundSymbolPropertyPage();
         property.AddPage(page);
         if (property.EditProperties(this.ibackground_0))
         {
             this.bool_0 = false;
             this.method_3();
             IStyleGalleryItem styleGalleryItemAt =
                 this.cboBorder.GetStyleGalleryItemAt(this.cboBorder.Items.Count - 1);
             if (styleGalleryItemAt != null)
             {
                 if (styleGalleryItemAt.Name == "<定制>")
                 {
                     styleGalleryItemAt.Item = this.ibackground_0;
                 }
                 else
                 {
                     styleGalleryItemAt = new MyStyleGalleryItem
                     {
                         Name = "<定制>",
                         Item = this.ibackground_0
                     };
                     this.cboBackground.Add(styleGalleryItemAt);
                     this.cboBackground.SelectedIndex = this.cboBackground.Items.Count - 1;
                 }
             }
             else
             {
                 styleGalleryItemAt = new MyStyleGalleryItem
                 {
                     Name = "<定制>",
                     Item = this.ibackground_0
                 };
                 this.cboBackground.Add(styleGalleryItemAt);
                 this.cboBackground.SelectedIndex = this.cboBackground.Items.Count - 1;
             }
             this.bool_0 = true;
             this.method_0();
         }
     }
 }
Ejemplo n.º 7
0
        private void ScaleTextFormatPropertyPage_Load(object sender, EventArgs e)
        {
            IStyleGalleryItem item;

            this.cboFontName.Items.Clear();
            InstalledFontCollection fonts = new InstalledFontCollection();

            for (int i = 0; i < fonts.Families.Length; i++)
            {
                this.cboFontName.Items.Add(fonts.Families[i].Name);
            }
            if (this.istyleGallery_0 != null)
            {
                item = null;
                IEnumStyleGalleryItem item2 = this.istyleGallery_0.get_Items("Scale Texts", "", "");
                item2.Reset();
                item = item2.Next();
                while (item != null)
                {
                    this.cboStyle.Add(item);
                    item = item2.Next();
                }
                if (this.cboStyle.Items.Count > 0)
                {
                    this.cboStyle.SelectedIndex = 0;
                }
            }
            if (m_pScaleText != null)
            {
                item = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = m_pScaleText
                };
                this.cboStyle.SelectStyleGalleryItem(item);
            }
            this.method_0();
            this.bool_0 = true;
        }
Ejemplo n.º 8
0
        private void method_0()
        {
            this.txtTitle.Text = this.ilegend_0.Title;
            ILegendFormat format = this.ilegend_0.Format;

            this.chkShow.Checked  = format.ShowTitle;
            this.txtTitle.Enabled = format.ShowTitle;
            this.cboTitlePosition.SelectedIndex = ((int)format.TitlePosition) - 1;
            this.txtWidth.Text  = format.DefaultPatchWidth.ToString("#.##");
            this.txtHeight.Text = format.DefaultPatchHeight.ToString("#.##");
            this.listView1.Items[0].SubItems[1].Text = format.HeadingGap.ToString("#.##");
            this.listView1.Items[1].SubItems[1].Text = format.VerticalItemGap.ToString("#.##");
            this.listView1.Items[2].SubItems[1].Text = format.HorizontalItemGap.ToString("#.##");
            this.listView1.Items[3].SubItems[1].Text = format.LayerNameGap.ToString("#.##");
            this.listView1.Items[4].SubItems[1].Text = format.GroupGap.ToString("#.##");
            this.listView1.Items[5].SubItems[1].Text = format.TitleGap.ToString("#.##");
            this.listView1.Items[6].SubItems[1].Text = format.TextGap.ToString("#.##");
            this.listView1.Items[7].SubItems[1].Text = format.VerticalPatchGap.ToString("#.##");
            this.listView1.Items[8].SubItems[1].Text = format.HorizontalPatchGap.ToString("#.##");
            IStyleGalleryItem oO = new MyStyleGalleryItem
            {
                Name = "<定制>"
            };

            this.ilinePatch_0 = format.DefaultLinePatch;
            oO.Item           = this.ilinePatch_0;
            this.cboLinePatches.SelectStyleGalleryItem(oO);
            oO = new MyStyleGalleryItem
            {
                Name = "<定制>"
            };
            this.iareaPatch_0 = format.DefaultAreaPatch;
            oO.Item           = this.iareaPatch_0;
            this.cboAreaPatches.SelectStyleGalleryItem(oO);
            this.chkRightToLeft.Checked = (this.ilegend_0 as IReadingDirection).RightToLeft;
        }
Ejemplo n.º 9
0
 private void btnBackgroundSelector_Click(object sender, EventArgs e)
 {
     try
     {
         frmSymbolSelector selector = new frmSymbolSelector();
         if (selector != null)
         {
             IStyleGalleryItem selectStyleGalleryItem = this.cboBackground.GetSelectStyleGalleryItem();
             IBackground       pSym = null;
             if (selectStyleGalleryItem != null)
             {
                 pSym = selectStyleGalleryItem.Item as IBackground;
             }
             selector.SetStyleGallery(this.istyleGallery_0);
             if (pSym != null)
             {
                 selector.SetSymbol(pSym);
             }
             else
             {
                 selector.SetSymbol(new SymbolBackgroundClass());
             }
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 pSym                   = selector.GetSymbol() as IBackground;
                 this.bool_0            = false;
                 selectStyleGalleryItem =
                     this.cboBackground.GetStyleGalleryItemAt(this.cboBackground.Items.Count - 1);
                 if (selectStyleGalleryItem != null)
                 {
                     if (selectStyleGalleryItem.Name == "<定制>")
                     {
                         selectStyleGalleryItem.Item = pSym;
                     }
                     else
                     {
                         selectStyleGalleryItem = new MyStyleGalleryItem
                         {
                             Name = "<定制>",
                             Item = pSym
                         };
                         this.cboBackground.Add(selectStyleGalleryItem);
                         this.cboBackground.SelectedIndex = this.cboBackground.Items.Count - 1;
                     }
                 }
                 else
                 {
                     selectStyleGalleryItem = new MyStyleGalleryItem
                     {
                         Name = "<定制>",
                         Item = pSym
                     };
                     this.cboBackground.Add(selectStyleGalleryItem);
                     this.cboBackground.SelectedIndex = this.cboBackground.Items.Count - 1;
                 }
                 this.bool_0 = true;
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 10
0
        private void method_1(IFrameElement iframeElement_1)
        {
            IBorder           border     = iframeElement_1.Border;
            IBackground       background = iframeElement_1.Background;
            IShadow           shadow     = (iframeElement_1 as IFrameProperties).Shadow;
            IStyleGalleryItem oO         = null;
            IFrameDecoration  decoration = null;

            if (border == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = border
                };
                decoration         = border as IFrameDecoration;
                this.txtGap.Text   = decoration.HorizontalSpacing.ToString("0.##");
                this.txtRound.Text = decoration.CornerRounding.ToString("0.##");
            }
            this.cboBorder.SelectStyleGalleryItem(oO);
            if (background == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = background
                };
                if (decoration == null)
                {
                    decoration         = background as IFrameDecoration;
                    this.txtGap.Text   = decoration.HorizontalSpacing.ToString("0.##");
                    this.txtRound.Text = decoration.CornerRounding.ToString("0.##");
                }
            }
            this.cboBackground.SelectStyleGalleryItem(oO);
            if (shadow == null)
            {
                oO = null;
            }
            else
            {
                oO = new MyStyleGalleryItem
                {
                    Name = "<定制>",
                    Item = shadow
                };
                if (decoration == null)
                {
                    decoration         = shadow as IFrameDecoration;
                    this.txtGap.Text   = decoration.HorizontalSpacing.ToString("0.##");
                    this.txtRound.Text = decoration.CornerRounding.ToString("0.##");
                }
            }
            this.cboShadow.SelectStyleGalleryItem(oO);
        }
Ejemplo n.º 11
0
 private void method_1()
 {
     if (this.ilegendItem_0 != null)
     {
         this.itextSymbol_0                = this.ilegendItem_0.LayerNameSymbol;
         this.itextSymbol_1                = this.ilegendItem_0.HeadingSymbol;
         this.itextSymbol_2                = this.ilegendItem_0.LegendClassFormat.LabelSymbol;
         this.itextSymbol_3                = this.ilegendItem_0.LegendClassFormat.DescriptionSymbol;
         this.chkShowLayerName.Checked     = this.ilegendItem_0.ShowLayerName;
         this.btnLayerNameSymbol.Enabled   = this.chkShowLayerName.Checked;
         this.chkShowTitle.Checked         = this.ilegendItem_0.ShowHeading;
         this.btnTitleSymbol.Enabled       = this.chkShowTitle.Checked;
         this.chkShowLabel.Checked         = this.ilegendItem_0.ShowLabels;
         this.btnLabelSymbol.Enabled       = this.chkShowLabel.Checked;
         this.chkShowDescription.Checked   = this.ilegendItem_0.ShowDescriptions;
         this.btnDescriptionSymbol.Enabled = this.chkShowDescription.Checked;
         if ((this.ilegendItem_0.LegendClassFormat.AreaPatch != null) ||
             (this.ilegendItem_0.LegendClassFormat.LinePatch != null))
         {
             IStyleGalleryItem item;
             this.chkOveralpDefaultPatch.Checked = true;
             if (this.ilegendItem_0.LegendClassFormat.LinePatch != null)
             {
                 item = new MyStyleGalleryItem
                 {
                     Name = "<定制>",
                     Item = this.ilegendItem_0.LegendClassFormat.LinePatch
                 };
                 this.cboLinePatches.SelectStyleGalleryItem(item);
             }
             if (this.ilegendItem_0.LegendClassFormat.AreaPatch != null)
             {
                 item = new MyStyleGalleryItem
                 {
                     Name = "<定制>",
                     Item = this.ilegendItem_0.LegendClassFormat.AreaPatch
                 };
                 this.cboAreaPatches.SelectStyleGalleryItem(item);
             }
         }
         else
         {
             this.chkOveralpDefaultPatch.Checked = false;
         }
         this.cboLinePatches.Enabled = this.chkOveralpDefaultPatch.Checked;
         this.cboAreaPatches.Enabled = this.chkOveralpDefaultPatch.Checked;
         if ((this.ilegendItem_0.LegendClassFormat.PatchHeight != 0.0) &&
             (this.ilegendItem_0.LegendClassFormat.PatchHeight != 0.0))
         {
             this.chkOveralpDefaultPatchSize.Checked = true;
             this.txtDefaultPatchHeight.Text         = "24";
             this.txtDefaultPatchWidth.Text          = "36";
         }
         else
         {
             this.txtDefaultPatchHeight.Text = this.ilegendItem_0.LegendClassFormat.PatchHeight.ToString();
             this.txtDefaultPatchWidth.Text  = this.ilegendItem_0.LegendClassFormat.PatchWidth.ToString();
         }
         this.txtDefaultPatchHeight.Enabled = this.chkOveralpDefaultPatchSize.Checked;
         this.txtDefaultPatchWidth.Enabled  = this.chkOveralpDefaultPatchSize.Checked;
     }
 }
Ejemplo n.º 12
0
 private void Init()
 {
     if (LegendItemArrangementPropertyPage.m_pLegendItem != null)
     {
         this.m_pLayerNameSymbol   = LegendItemArrangementPropertyPage.m_pLegendItem.LayerNameSymbol;
         this.m_pHeadingSymbol     = LegendItemArrangementPropertyPage.m_pLegendItem.HeadingSymbol;
         this.m_pLabelSymbol       = LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.LabelSymbol;
         this.m_pDescriptionSymbol =
             LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.DescriptionSymbol;
         this.chkShowLayerName.Checked     = LegendItemArrangementPropertyPage.m_pLegendItem.ShowLayerName;
         this.btnLayerNameSymbol.Enabled   = this.chkShowLayerName.Checked;
         this.chkShowTitle.Checked         = LegendItemArrangementPropertyPage.m_pLegendItem.ShowHeading;
         this.btnTitleSymbol.Enabled       = this.chkShowTitle.Checked;
         this.chkShowLabel.Checked         = LegendItemArrangementPropertyPage.m_pLegendItem.ShowLabels;
         this.btnLabelSymbol.Enabled       = this.chkShowLabel.Checked;
         this.chkShowDescription.Checked   = LegendItemArrangementPropertyPage.m_pLegendItem.ShowDescriptions;
         this.btnDescriptionSymbol.Enabled = this.chkShowDescription.Checked;
         if ((LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.AreaPatch != null) ||
             (LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.LinePatch != null))
         {
             IStyleGalleryItem item;
             this.chkOveralpDefaultPatch.Checked = true;
             if (LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.LinePatch != null)
             {
                 item = new MyStyleGalleryItem
                 {
                     Name = "<定制>",
                     Item = LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.LinePatch
                 };
                 this.cboLinePatches.SelectStyleGalleryItem(item);
             }
             if (LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.AreaPatch != null)
             {
                 item = new MyStyleGalleryItem
                 {
                     Name = "<定制>",
                     Item = LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.AreaPatch
                 };
                 this.cboAreaPatches.SelectStyleGalleryItem(item);
             }
         }
         else
         {
             this.chkOveralpDefaultPatch.Checked = false;
         }
         this.cboLinePatches.Enabled = this.chkOveralpDefaultPatch.Checked;
         this.cboAreaPatches.Enabled = this.chkOveralpDefaultPatch.Checked;
         if ((LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.PatchHeight != 0.0) &&
             (LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.PatchHeight != 0.0))
         {
             this.chkOveralpDefaultPatchSize.Checked = true;
             this.txtDefaultPatchHeight.Text         = "24";
             this.txtDefaultPatchWidth.Text          = "36";
         }
         else
         {
             this.txtDefaultPatchHeight.Text =
                 LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.PatchHeight.ToString();
             this.txtDefaultPatchWidth.Text =
                 LegendItemArrangementPropertyPage.m_pLegendItem.LegendClassFormat.PatchWidth.ToString();
         }
         this.txtDefaultPatchHeight.Enabled = this.chkOveralpDefaultPatchSize.Checked;
         this.txtDefaultPatchWidth.Enabled  = this.chkOveralpDefaultPatchSize.Checked;
     }
 }
Ejemplo n.º 13
0
 private void MapDataFramePage_Load(object sender, EventArgs e)
 {
     this.cboBorder.Add(null);
     if (ApplicationBase.StyleGallery != null)
     {
         IStyleGalleryItem     item  = null;
         IEnumStyleGalleryItem item2 = ApplicationBase.StyleGallery.get_Items("Borders", "", "");
         item2.Reset();
         for (item = item2.Next(); item != null; item = item2.Next())
         {
             this.cboBorder.Add(item);
         }
         if (this.cboBorder.Items.Count > 0)
         {
             this.cboBorder.SelectedIndex = 0;
         }
     }
     this.bool_0      = true;
     this.ienvelope_0 = (this.ibasicMap_0 as IActiveView).Extent;
     if (this.ibasicMap_0 is IMapAutoExtentOptions)
     {
         if ((this.ibasicMap_0 as IMapAutoExtentOptions).AutoExtentType == esriExtentTypeEnum.esriExtentDefault)
         {
             this.cboExtendType.SelectedIndex = 0;
         }
         else if ((this.ibasicMap_0 as IMapAutoExtentOptions).AutoExtentType == esriExtentTypeEnum.esriExtentScale)
         {
             this.cboExtendType.SelectedIndex = 1;
         }
         else
         {
             this.cboExtendType.SelectedIndex = 2;
             this.ienvelope_0 = (this.ibasicMap_0 as IMapAutoExtentOptions).AutoExtentBounds;
         }
         this.ienvelope_0 = (this.ibasicMap_0 as IMapAutoExtentOptions).AutoExtentBounds;
     }
     if (this.ibasicMap_0 is IMapClipOptions)
     {
         if ((this.ibasicMap_0 as IMapClipOptions).ClipType == esriMapClipType.esriMapClipNone)
         {
             this.cboClipType.SelectedIndex = 0;
         }
         else
         {
             this.cboClipType.SelectedIndex = 1;
         }
         this.groupBox4.Enabled = this.cboClipType.SelectedIndex == 1;
         this.checkBox1.Checked = (this.ibasicMap_0 as IMapClipOptions).ClipGridAndGraticules;
         if ((this.ibasicMap_0 as IMapClipOptions).ClipBorder != null)
         {
             IStyleGalleryItem item3 = new MyStyleGalleryItem
             {
                 Item = (this.ibasicMap_0 as IMapClipOptions).ClipBorder,
                 Name = ""
             };
             this.cboBorder.Add(item3);
             this.cboBorder.SelectedIndex = this.cboBorder.Items.Count - 1;
         }
         this.igeometry_0 = (this.ibasicMap_0 as IMapClipOptions).ClipGeometry;
     }
 }