Applying GraphicAttributes on inline anchored item does not work

Explorer ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

Hello,

Applying the following code on a normal graphic box works fine. However it does not work on an anchored box. Appreciate your help and suggestions:

 

UIDList newSplineItemList(BoxIDRef); //BoxIDRef is the UIDRef of the anchored box

InterfacePtr<ICommand> FillTintSplineCmd(Utils<IGraphicAttributeUtils>()->CreateFillTintCommand(pcr->backShade, &newSplineItemList, kTrue, kTrue));
if (FillTintSplineCmd == nil)
{
status = kFailure;
QError(QERROR, "185620-cannot create the command to apply FillTint");
return status;
}
status = CmdUtils::ProcessCommand(FillTintSplineCmd);

 

TOPICS
SDK

Views

67

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jul 12, 2022 Jul 12, 2022

Use ::GetClass() to determine the class of your "anchored box".

That's probably something related to the anchoring.

Then look around for nested objects using IHierarchy.

Likes

Translate

Translate
Guide ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

LATEST

Use ::GetClass() to determine the class of your "anchored box".

That's probably something related to the anchoring.

Then look around for nested objects using IHierarchy.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines