{"id":788,"date":"2017-04-22T17:23:42","date_gmt":"2017-04-22T08:23:42","guid":{"rendered":"http:\/\/cromi.com\/?p=788"},"modified":"2017-04-22T17:23:42","modified_gmt":"2017-04-22T08:23:42","slug":"c-richtextbox-%ec%97%90-%eb%a1%9c%ea%b7%b8-%ec%9d%b4%eb%b2%a4%ed%8a%b8-%ec%93%b0%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/cromi.com\/?p=788","title":{"rendered":"C# RichTextBox \uc5d0 \ub85c\uadf8 \uc774\ubca4\ud2b8 \uc4f0\uae30"},"content":{"rendered":"<p>\ub098\uc911\uc5d0 \uac00\uc838\ub2e4 \uc4f0\uae30 \uc704\ud568 ~~ <\/p>\n<pre lang=\"csharp\">\r\n\r\nprivate void InsertTextProcess(string argText)\r\n{\r\n     this.rtb_Display.Focus();\r\n     this.rtb_Display.AppendText(argText);  \/\/ \ub370\uc774\ud130 \ucd94\uac00 \r\n     this.rtb_Display.ScrollToCaret();   \/\/ \uc2a4\ud06c\ub864 \ub9e8 \uc544\ub798\ub85c\r\n\r\n    int linecnt = this.rtb_Display.Lines.Count();   \/\/ \ub77c\uc778 \uac2f\uc218 \uad6c\ud568\r\n    if (linecnt > 10) this.rtb_Display.Clear();    \/\/  \ub77c\uc778\uac2f\uc218 10 row \uc0dd\uc131\uc2dc \ucd08\uae30\ud654 \r\n\r\n}\r\n<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>\ub098\uc911\uc5d0 \uac00\uc838\ub2e4 \uc4f0\uae30 \uc704\ud568 ~~ private void InsertTextProcess(string argText) { this.rtb_Display.Focus(); this.rtb_Display.AppendText(argText); \/\/ \ub370\uc774\ud130 \ucd94\uac00 this.rtb_Display.ScrollToCaret(); \/\/ \uc2a4\ud06c\ub864 \ub9e8 \uc544\ub798\ub85c int linecnt = this.rtb_Display.Lines.Count(); \/\/ \ub77c\uc778 \uac2f\uc218 \uad6c\ud568 if (linecnt > 10) this.rtb_Display.Clear(); \/\/ \ub77c\uc778\uac2f\uc218 10 row \uc0dd\uc131\uc2dc \ucd08\uae30\ud654 }<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[54,240,317,316,53,315,318],"class_list":["post-788","post","type-post","status-publish","format-standard","hentry","category-vs2008","tag-c-2008","tag-c2008","tag-richtextbox-clear","tag-richtextbox-scroll","tag-vs2008-2","tag-315","tag-318"],"_links":{"self":[{"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/posts\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cromi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=788"}],"version-history":[{"count":5,"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/posts\/788\/revisions"}],"predecessor-version":[{"id":794,"href":"http:\/\/cromi.com\/index.php?rest_route=\/wp\/v2\/posts\/788\/revisions\/794"}],"wp:attachment":[{"href":"http:\/\/cromi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cromi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cromi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}