{"id":87,"date":"2009-03-21T22:21:13","date_gmt":"2009-03-21T22:21:13","guid":{"rendered":"http:\/\/www.slotware.net\/blog\/\/wp\/?p=87"},"modified":"2013-06-06T18:54:15","modified_gmt":"2013-06-06T09:54:15","slug":"cwebbrowser","status":"publish","type":"post","link":"https:\/\/www.slotware.net\/blog\/2009\/03\/cwebbrowser.html","title":{"rendered":"C#\u304b\u3089WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.slotware.net\/blog\/2009\/03\/cwebbrowser.html\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.slotware.net\/blog\/2009\/03\/cwebbrowser.html\" data-text=\"C#\u304b\u3089WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b\" data-lang=\"ja\">Tweet<\/a><\/div>        <div class=\"wsbl_hatena\"><a href='\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fwww.slotware.net%2Fblog%2F2009%2F03%2Fcwebbrowser.html&title=C%23%E3%81%8B%E3%82%89WebBrowser%E3%82%B3%E3%83%B3%E3%83%88%E3%83%AD%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/www.slotware.net\/blog\/wordpress\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/hatena.gif' alt='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' width='16' height='12' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_hatena_users\"><a href='\/\/b.hatena.ne.jp\/entry\/https:\/\/www.slotware.net\/blog\/2009\/03\/cwebbrowser.html' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - C#\u304b\u3089WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='\/\/b.hatena.ne.jp\/entry\/image\/https:\/\/www.slotware.net\/blog\/2009\/03\/cwebbrowser.html' alt='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - C#\u304b\u3089WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - C#\u304b\u3089WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b'   class='wp_social_bookmarking_light_img' \/><\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<p>\u3055\u3066\u4eca\u65e5\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u8a71\u3067\u3059\u3002C#\u3067IE\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u3044\u3058\u304f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u8a73\u7d30\u306f\u307e\u3060\u660e\u304b\u305b\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u73fe\u5728C#\u3067\u7c21\u5358\u306a\u30c1\u30e3\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u304a\u308a\u307e\u3057\u3066\u3001\u4f1a\u8a71\u306e\u30ed\u30b0\u8868\u793a\u90e8\u5206\u306b<span class=\"Apple-style-span\" style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; white-space: pre; \">IE\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/span>(WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb)\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u79c1\u306e\u78ba\u8a8d\u3059\u308b\u9650\u308a\u3067\u306f\u7c73\u56fd\u7248\u306eYahoo\u30e1\u30c3\u30bb\u30f3\u30b8\u30e3\u30fc\u3082\u3053\u306e\u65b9\u5f0f\u304c\u4f7f\u308f\u308c\u3066\u3044\u3066\u3001\u4f1a\u8a71\u30ed\u30b0\u306e\u4e2d\u306bYouTube\u306e\u52d5\u753b\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u305f\u308a\u3068\u3001\u304b\u306a\u308a\u5f37\u529b\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u65e5\u306f\u30c1\u30e3\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3067IE\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u52b9\u7387\u3088\u304f\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3044\u308d\u3044\u308d\u3068\u81ea\u7fd2\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u4eca\u65e5\u308f\u304b\u3063\u305f\u3053\u3068\u3002<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><span class=\"Apple-style-span\" style=\"font-weight: bold; \">\u6a19\u6e96\u306e\u30c0\u30b5\u3044\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5207\u308b\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><span class=\"Apple-style-span\" style=\"font-weight: bold; \"><span class=\"Apple-style-span\" style=\"font-weight: normal; \">\u30c1\u30e3\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u300c\u30bd\u30fc\u30b9\u3092\u8868\u793a\u300d\u3068\u304b\u300c\u524d\u306b\u623b\u308b\u300d\u306a\u3069\u306e\u4f59\u8a08\u306a\u30e1\u30cb\u30e5\u30fc\u306f\u8981\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u81ea\u524d\u3067\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5b9f\u88c5\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/span><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u6a19\u6e96\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5207\u308b\u306b\u306fIsWebBrowserContextMenuEnabled\u30d7\u30ed\u30d1\u30c6\u30a3\u3092false\u306b\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u4ee3\u308f\u308a\u306b\u72ec\u81ea\u306b\u300c\u30b3\u30d4\u30fc\u300d\u3084\u300c\u3059\u3079\u3066\u9078\u629e\u300d\u306a\u3069\u3092\u5165\u308c\u305f\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u81ea\u5206\u3067\u4f5c\u3063\u3066\u3084\u308a\u3001ContextMenuStrip\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u53f3\u30af\u30ea\u30c3\u30af\u6642\u306bIE\u6a19\u6e96\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u4ee3\u308f\u308a\u306b\u81ea\u5206\u3067\u4f5c\u3063\u305f\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><span class=\"Apple-style-span\" style=\"font-weight: bold; \">\u72ec\u81ea\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3067\u300c\u30b3\u30d4\u30fc\u300d\u3084\u300c\u3059\u3079\u3066\u9078\u629e\u300d\u306e\u52d5\u4f5c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\uff1f<\/span><\/p>\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u3055\u3066\u3001\u72ec\u81ea\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u3068\u57fa\u672c\u7684\u306b\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u3055\u308c\u305f\u5834\u5408\u306e\u51e6\u7406\u306f\u3059\u3079\u3066\u81ea\u5206\u3067\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u5f53\u7136\u53f3\u30af\u30ea\u30c3\u30af\u3067\u30b3\u30d4\u30fc\u3092\u884c\u3046\u52d5\u4f5c\u7b49\u306f\u72ec\u81ea\u306b\u5b9f\u88c5\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u9078\u629e\u7bc4\u56f2\u306e\u30b3\u30d4\u30fc\u3092\u884c\u3046\u306e\u306f\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u4e8b\u3067\u306f\u306a\u304f\u3001<br \/>WebBrowser.Document.ExecCommand(&#8220;Copy&#8221;, false, null);<br \/>\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u30b3\u30de\u30f3\u30c9\u3092\u9001\u3063\u3066\u3084\u308c\u3070\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u307e\u305f\u3001\u300c\u3059\u3079\u3066\u9078\u629e\u300d\u3092\u884c\u3046\u306b\u306f&#8221;SelectAll&#8221;\u30b3\u30de\u30f3\u30c9\u3092\u540c\u69d8\u306b\u9001\u3063\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u8981\u306f\u3053\u308c\u3089\u306e\u52d5\u4f5c\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u3063\u3066\u3001\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306b\u8a2d\u5b9a\u3057\u3066\u3084\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u3002<\/p>\n<p style=\"border-style: initial; border-color: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><span class=\"Apple-style-span\" style=\"font-weight: bold; \">\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306e\u8abf\u6574\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002<\/span><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\n<p>\u3057\u304b\u3057\u3053\u306e\u307e\u307e\u3067\u306f\u3001\u4f55\u306e\u6587\u5b57\u5217\u3082\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u6cc1\u3067\u3082\u300c\u30b3\u30d4\u30fc\u300d\u306e\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6587\u5b57\u5217\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u6cc1\u3067\u306f\u306a\u3093\u3089\u304b\u306e\u65b9\u6cd5\u3067\u3053\u306e\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u3092\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u307e\u3059\u3002<\/p>\n<div>\u5e78\u3044\u306a\u3053\u3068\u306b\u3001WebBrowser.Document\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e2d\u306bContextMenuShowing\u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u304c\u3042\u308a\u3001\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u3046\u4e8b\u3067\u53f3\u30af\u30ea\u30c3\u30af\u304c\u884c\u308f\u308c\u3066\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u76f4\u524d\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u547c\u3076\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u3053\u306b\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306eEnabled\/Disabled\u306e\u8abf\u6574\u30eb\u30fc\u30c1\u30f3\u3092\u5165\u308c\u3066\u3084\u308a\u307e\u3059\u3002<\/div>\n<div><\/div>\n<div>\u3053\u3053\u3067\u306f\u300c\u4f55\u3089\u304b\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308c\u3070\u30b3\u30d4\u30fc\u304c\u9078\u629e\u53ef\u80fd\u300d\u3001\u300c\u4f55\u306e\u30c6\u30ad\u30b9\u30c8\u3082\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u30b3\u30d4\u30fc\u304c\u9078\u629e\u4e0d\u53ef\u80fd\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<div>WebBrowser\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u4e0a\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u3044\u306a\u3044\u304b\u3092\u5224\u5225\u3059\u308b\u306e\u306f\u3001\u3061\u3087\u3063\u3068\u3084\u3063\u304b\u3044\u3067\u3001\u6a19\u6e96\u306eDocument\u30d7\u30ed\u30d1\u30c6\u30a3\u3060\u3051\u3067\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306bmshtml.IHTMLDocument2\u306a\u308b\u3082\u306e\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u6642\u300cMicrosoft.mshtml\u300d\u3092\u53c2\u7167\u306b\u8ffd\u52a0\u3059\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/div>\n<div><\/div>\n<div>\u3055\u3066\u5b9f\u969b\u306b\u3001\u9078\u629e\u7bc4\u56f2\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f<\/p>\n<p style=\"border-top-width: 0px; border-right-width\n: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)this.webBrowser1.Document.DomDocument;<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u3067\u3001DomDocument\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u3066\u304b\u3089\u3001<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">mshtml.IHTMLTxtRange range = (mshtml.IHTMLTxtRange)doc.selection.createRange();<br \/>string selection = range.text;<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u3068\u3059\u308b\u3053\u3068\u3067selection\u306b\u9078\u629e\u90e8\u5206\u306e\u6587\u5b57\u5217\u304c\u5165\u308a\u307e\u3059\u3002\u4f55\u3082\u9078\u629e\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306fnull\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u304cnull\u304b\u3069\u3046\u304b\u3092\u898b\u3066\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306e\u8abf\u6574\u3092\u884c\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \"><span class=\"Apple-style-span\" style=\"font-weight: bold; \">\u6700\u7d42\u7684\u306b\u51fa\u6765\u305f\u3082\u306e<\/span><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\n<p><span class=\"mt-enclosure mt-enclosure-image\" style=\"display: inline; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; \"><img loading=\"lazy\" decoding=\"async\" alt=\"ie_customcontextmenu.png\" src=\"https:\/\/www.slotware.net\/mt_old\/2009\/03\/21\/ie_customcontextmenu.png\" width=\"436\" height=\"234\" class=\"mt-image-center\" style=\"text-align: center; display: block; margin-top: 0px; margin-right: auto; margin-bottom: 20px; margin-left: auto; \" \/><\/span><\/p>\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\n<p style=\"border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 1em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.75em; margin-left: 0px; \">\u6a19\u6e96\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u4ee3\u308f\u308a\u306b\u72ec\u81ea\u306b\u5b9f\u88c5\u3057\u305f\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u7121\u4e8b\u306b\u6a5f\u80fd\u3057\u307e\u3057\u305f\u3002\u3042\u3068\u306f\u3053\u308c\u3092\u3069\u3093\u3069\u3093\u767a\u5c55\u3055\u305b\u3066\u3044\u304f\u3060\u3051\u3067\u3059\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u4eca\u65e5\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u8a71\u3067\u3059\u3002C#\u3067IE\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u3044\u3058\u304f\u3063\u3066\u307f\u307e\u3059\u3002\u8a73\u7d30&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155],"tags":[157,269,270],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-programming","tag-c","tag-ie","tag-mshtml"],"_links":{"self":[{"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":2,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":2299,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions\/2299"}],"wp:attachment":[{"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slotware.net\/blog\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}