Beispiel #1
0
 public vdText getVdText()
 {
     text.TextString     = this.getContext();
     text.Style.FontFile = this.getFont();
     text.Height         = this.getHeight();
     text.Update();
     return(text);
 }
Beispiel #2
0
 public void SetTextSize(double txtSize)
 {
     for (int i = 0; i < this.doc.ActiveLayOut.Entities.Count; i++)
     {
         vdText txt = this.doc.ActiveLayOut.Entities[i] as vdText;
         if (txt != null)
         {
             txt.Height = txtSize / 10.0d;
             txt.Update();
         }
     }
     this.doc.Redraw(true);
 }
Beispiel #3
0
 private void Set_TextSize()
 {
     foreach (var item in VDoc.ActionLayout.Entities)
     {
         if (item is vdMText)
         {
             vdMText t = item as vdMText;
             t.Height = TXT_SIZE;
             t.Update();
         }
         if (item is vdText)
         {
             vdText t = item as vdText;
             t.Height = TXT_SIZE;
             t.Update();
         }
     }
     VDoc.Redraw(true);
 }
Beispiel #4
0
        //Chiranjit [2011 12 14]
        void ResizeText(double text_size)
        {
            for (int i = 0; i < MainDoc.ActiveLayOut.Entities.Count; i++)
            {
                vdText  t = MainDoc.ActiveLayOut.Entities[i] as vdText;
                vdMText m = MainDoc.ActiveLayOut.Entities[i] as vdMText;

                if (t != null)
                {
                    t.Height = text_size;
                    t.Update();
                }
                else if (m != null)
                {
                    m.Height = text_size;
                    m.Update();
                }
            }
            MainDoc.Redraw(true);
            MainDoc.Update();
        }
Beispiel #5
0
        public void Draw_Boq(vdDocument doc)
        {
            for (int i = 0; i < doc.ActiveLayOut.Entities.Count; i++)
            {
                vdText txt = doc.ActiveLayOut.Entities[i] as vdText;
                if (txt != null)
                {
                    #region SWITCH
                    switch (txt.TextString)
                    {
                    case "size1":
                        txt.TextString = size1;
                        break;

                    case "bgd":
                        txt.TextString = bgd;
                        break;

                    case "d1":
                        txt.TextString = d1.ToString();
                        break;

                    case "d2":
                        txt.TextString = d2.ToString();
                        break;

                    case "dist1":
                        txt.TextString = dist1.ToString();
                        break;

                    case "dist2":
                        txt.TextString = dist2.ToString();
                        break;

                    case "dist3":
                        txt.TextString = dist3.ToString();
                        break;

                    case "dist4":
                        txt.TextString = dist4.ToString();
                        break;

                    case "bno1":
                        txt.TextString = bno1.ToString();
                        break;

                    case "bno2":
                        txt.TextString = bno2.ToString();
                        break;

                    case "bno3":
                        txt.TextString = bno3.ToString();
                        break;

                    case "bno4":
                        txt.TextString = bno4.ToString();
                        break;

                    case "bno5":
                        txt.TextString = bno5.ToString();
                        break;

                    case "bwt1":
                        txt.TextString = bwt1.ToString();
                        break;

                    case "bwt2":
                        txt.TextString = bwt2.ToString();
                        break;

                    case "bwt3":
                        txt.TextString = bwt3.ToString();
                        break;

                    case "bwt4":
                        txt.TextString = bwt4.ToString();
                        break;

                    case "bwt5":
                        txt.TextString = bwt5.ToString();
                        break;

                    case "depth":
                        txt.TextString = depth.ToString();
                        break;

                    case "shape1":
                        txt.TextString = shape1.ToString();
                        break;

                    case "shape2":
                        txt.TextString = shape2.ToString();
                        break;

                    case "shape3":
                        txt.TextString = shape3.ToString();
                        break;

                    case "shape4":
                        txt.TextString = shape4.ToString();
                        break;
                    }
                    #endregion
                    txt.Update();
                }
            }
        }