70001338 Export AlignToView and AlignToViseSize in Wrapper for vdMText

Article 70001338
Type Wish
Product Engine
Version 7014
Date Added 5/29/2018 12:00:00 AM
Fixed 7.7015.0.6 (5/29/2018 12:00:00 AM)
Submitted by J L Ruiz


Is it possible to export AlignToView and AlignToViseSize in Wrapper (activex) for vdMText objects?


It is exported in 7.7015.0.6.
In Delphi you can use it like:

   MyMText := doc.ActiveLayOut.entities.Last as VectorDraw_Professional_TLB.ivdMtext;
  (MyMText as VectorDraw_Professional_TLB.iAligntoview).AlignToViewSize := 10;
  (MyMText as VectorDraw_Professional_TLB.iAligntoview).AlignToView := true;
In VB6 like:
Dim mtext As VectorDraw_Professional.vdMText
Dim ialig As VectorDraw_Professional.IAlignToView
    doc.CommandAction.CmdMText "aaaa", CDbl(0), "user"
    Set mtext = doc.ActiveLayOut.entities.Last
    Set ialig = mtext
    ialig.AlignToViewSize = 10

Send comments on this topic.