# 업그레이드 상태에 따른 취소선 표기에 차이가 있습니다

**URL:** <https://forum.developer.hancom.com/t/topic/60>\
**Category:** 한글 컨트롤\
**Created:** [10월 14, 2021, 3:15오전 UTC](https://forum.developer.hancom.com/t/topic/60 "2021-10-14T03:15:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev.community](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.developer.hancom.com/dev.community/32/488_2.png) [@dev.community](https://forum.developer.hancom.com/u/dev.community)\
**Post date:** [10월 14, 2021, 3:15오전 UTC](https://forum.developer.hancom.com/t/topic/60/1 "2021-10-14T03:15:45Z")

</div>

_(예전 커뮤니티(2016-2020) 사이트에서 옮겨온 글입니다: [번호 23](https://www.hancom.com/board/devcommView.do?board_seq=48&artcl_seq=6513))_

작성자: miniaron  
날짜: 2017-01-10

* * *

단일 코드에서 PC에 따라 취소선이 달리 나타납니다.

한글 업그레이드가 된 PC는 보내드린 것처럼 취소선이 잘 나타나고,

업그레이드를 안 한 PC는 취소선이 나타나지 않습니다.

글자색은 잘 나타납니다.

이건, 분명, 업그레이드 때문이라고, 소리 높여 외~ 칩니다. 콜록콜록…

원하는 것은

1. 모든 PC에서 동일한 상태로 보고 싶습니다.

– 끄읕 –

— 코드 —

```auto
private void InsertText(int listindex, string text)
{
    HWPCONTROLLib.DHwpAction act = (HWPCONTROLLib.DHwpAction)axHwpCtrl1.CreateAction("InsertText");
    HWPCONTROLLib.DHwpParameterSet set = (HWPCONTROLLib.DHwpParameterSet)act.CreateSet();

    // 텍스트를 넣을 위치로 캐럿을 이동한다.
    axHwpCtrl1.SetPos(listindex, 0, 0);

    if (isCenterLine == true)
    {
        axHwpCtrl1.Run("CharShapeCenterline");
    }

    if (isTextColorRed == true)
    {
        axHwpCtrl1.Run("CharShapeTextColorRed");
    }

    if (isTextColorBlue == true)
    {
        axHwpCtrl1.Run("CharShapeTextColorBlue");
    }

    set.SetItem("Text", text);
    act.Execute(set);

}

```

[일일작업계획\_20170206.hwp](https://forum.developer.hancom.com/404) (32 KB)

 ![일일작업등록부](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/1X/882e097023caff0c41e82e354e75ea278982f37c.jpeg)

#### 댓글

##### yhjung (2017.01.10)

한글API 동작 기능에 대한 판단(정상/비정상)은 최신버전을 기준으로 합니다. 이는 과거버전에서 발생된 오류들을 최신버전에서 수정하였기 때문입니다.  
말씀하신 부분은 과거버전에서 안되고, 최신버전에서 된다는 말씀이신데요. 이는 정상동작입니다. 최신 버전으로 업데이트하셔야겠습니다

##### yhjung (2017.01.10)

한가지 더 말씀드리면, 적어주신 소스코드는 액션과 API수행이 섞여 있습니다.  
CreateAction~Execute 사이에 Run, SetPos 등의 한글컨트롤API를 수행하는 것은 바람직하지 않습니다.  
하나의 동작이 끝난 후 다른 동작을 수행하는 방식으로 작성해주시면 좋겠습니다
