get text in the collection of CADTEXT
Moderators: SDS, support, admin
get text in the collection of CADTEXT
Hi
I select texts in my dwg and want get string or text of that selected texts!

for example I use this code: but not usefull!
please guide me.
I select texts in my dwg and want get string or text of that selected texts!

for example I use this code:
Code: Select all
cadImageFld.SelectedEntities.Item(1).unicodetext
please guide me.
Re: get text in the collection of CADTEXT
Hi,user20 wrote: ↑07 Dec 2022, 10:34Hi
I select texts in my dwg and want get string or text of that selected texts!
for example I use this code:but not usefull!Code: Select all
cadImageFld.SelectedEntities.Item(1).unicodetext
please guide me.
The instance of the CADText class stores Text in the TEXT property:
Code: Select all
string getCADTextString=yournamedcadtextentity.Text;
Code: Select all
private string gettext;
private void menuItem8_Click(object sender, EventArgs e)
{
if (cadImage == null) return;
foreach(CADEntity ent in cadImage.SelectedEntities)
{
if (ent is CADText)
gettext = ((CADText)ent).Text;
}
}
Catherine.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support