(예전 커뮤니티(2016-2020) 사이트에서 옮겨온 글입니다: 번호 132)
작성자: assaf.goldberg
날짜: 2019-09-26
Hi, I want to highlight selected text with yellow color, but each time the color is changed.
How do I write it that it will be yellow?
안녕하세요, 선택한 텍스트를 노란색으로 강조 표시하고 싶지만 색상이 변경 될 때마다 노란색으로 표시하려면 어떻게합니까?
hwpApp.Run("SelectCtrlReverse");
dynamic act = hwpApp.CreateAction("MarkPenShape");
dynamic set = act.CreateSet();
act.GetDefault(set);
set.SetItem("Color", "FFFF66");
act.Execute(set);
Thanks,
Assaf
댓글
(2019.09.29)
“FFFF66” → 65535
Also, you can use “RGBColor” method like:
hwpApp.RGBColor(red=255,green=255,blue=0)
assaf.goldberg (2019.10.22)
Thanks!