Copy link to clipboard
Copied
Dear Friends,
How to identify the text is point type or Area type?
Pleae tell, Is there any aip function available for check text is point type or Area type.
Regards,
Jayashree.J
Copy link to clipboard
Copied
Hi Jayashree,
at a glance you will notice that area type will have a thread box:
point type does not.
Copy link to clipboard
Copied
Hi Grant_H,
Thanks for your reply, We need to achieve it by c++ programming. Hence let me know any aip function availble for these process?
Copy link to clipboard
Copied
You can use AITextFrameSuite::GetType and you will get AITextType which can be one of the following:
|
Copy link to clipboard
Copied
This is a sample get FrameType of TextFrame:
AIArtSpec specs[1] = { { kTextFrameArt,0,0 } };
SnpArtSetHelper textFrameArtSet(specs, 1);
AIArtHandle textFrameArt = textFrameArtSet[0];
TextFrameRef textFrameRef = NULL;
result = sAITextFrame->GetATETextFrame(textFrameArt, &textFrameRef);
ITextFrame textFrame(textFrameRef);
FrameType itype = textFrame.GetType();
if (itype == kPointTextType)
{
//Point text
}
else if (itype == kInPathTextType)
{
//Area text
}
else if (itype == kOnPathTextType )
{
}