コード例 #1
0
ファイル: MainForm.cs プロジェクト: batuZ/Samples
        private void toolStripButtonCreateLabel_Click(object sender, EventArgs e)
        {
            ILabel label = objManager.CreateLabel(rootId);

            label.Text = "label" + labelCount.ToString();
            IPoint p = geoFactory.CreatePoint(gviVertexAttribute.gviVertexAttributeZ);

            p.SetCoords(0, 0, 0, 0, 0);
            label.Position = p;
            labelCount++;

            currentLabel = label;

            this.axRenderControl1.InteractMode          = gviInteractMode.gviInteractSelect;
            this.axRenderControl1.MouseSelectMode       = gviMouseSelectMode.gviMouseSelectMove | gviMouseSelectMode.gviMouseSelectClick;
            this.axRenderControl1.MouseSelectObjectMask = gviMouseSelectObjectMask.gviSelectFeatureLayer | gviMouseSelectObjectMask.gviSelectTerrain;

            mode = 1;
        }