Terminal.Gui.HexView.html 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class HexView
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class HexView
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.HexView">
  73. <h1 id="Terminal_Gui_HexView" data-uid="Terminal.Gui.HexView" class="text-break">Class HexView
  74. </h1>
  75. <div class="markdown level0 summary">
  76. An hex viewer and editor <a class="xref" href="Terminal.Gui.View.html">View</a> over a <span class="xref">System.IO.Stream</span>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. <div class="level3"><span class="xref">HexView</span></div>
  85. </div>
  86. <div class="implements">
  87. <h5>Implements</h5>
  88. <div><span class="xref">System.IDisposable</span></div>
  89. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  90. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  91. </div>
  92. <div class="inheritedMembers">
  93. <h5>Inherited Members</h5>
  94. <div>
  95. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetMinWidthHeight_Terminal_Gui_Size__">View.GetMinWidthHeight(Size)</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetMinWidthHeight">View.SetMinWidthHeight()</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_UpdateTextFormatterText">View.UpdateTextFormatterText()</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessResizeView">View.ProcessResizeView()</a>
  105. </div>
  106. <div>
  107. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  108. </div>
  109. <div>
  110. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  111. </div>
  112. <div>
  113. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  120. </div>
  121. <div>
  122. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  123. </div>
  124. <div>
  125. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  126. </div>
  127. <div>
  128. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  129. </div>
  130. <div>
  131. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  132. </div>
  133. <div>
  134. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  135. </div>
  136. <div>
  137. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  138. </div>
  139. <div>
  140. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  141. </div>
  142. <div>
  143. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  144. </div>
  145. <div>
  146. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  147. </div>
  148. <div>
  149. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  150. </div>
  151. <div>
  152. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  153. </div>
  154. <div>
  155. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  156. </div>
  157. <div>
  158. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_">View.DrawFrame(Rect, Int32, Boolean)</a>
  159. </div>
  160. <div>
  161. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_">View.DrawHotString(ustring, Attribute, Attribute)</a>
  162. </div>
  163. <div>
  164. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_">View.DrawHotString(ustring, Boolean, ColorScheme)</a>
  165. </div>
  166. <div>
  167. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  168. </div>
  169. <div>
  170. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  171. </div>
  172. <div>
  173. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  174. </div>
  175. <div>
  176. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a>
  177. </div>
  178. <div>
  179. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  180. </div>
  181. <div>
  182. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  183. </div>
  184. <div>
  185. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  186. </div>
  187. <div>
  188. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  189. </div>
  190. <div>
  191. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  192. </div>
  193. <div>
  194. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  195. </div>
  196. <div>
  197. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  198. </div>
  199. <div>
  200. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  201. </div>
  202. <div>
  203. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  204. </div>
  205. <div>
  206. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  207. </div>
  208. <div>
  209. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  210. </div>
  211. <div>
  212. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  213. </div>
  214. <div>
  215. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___">View.AddCommand(Command, Func&lt;Nullable&lt;Boolean&gt;&gt;)</a>
  216. </div>
  217. <div>
  218. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  219. </div>
  220. <div>
  221. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  222. </div>
  223. <div>
  224. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  225. </div>
  226. <div>
  227. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  228. </div>
  229. <div>
  230. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  231. </div>
  232. <div>
  233. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  234. </div>
  235. <div>
  236. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  237. </div>
  238. <div>
  239. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  240. </div>
  241. <div>
  242. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  243. </div>
  244. <div>
  245. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  246. </div>
  247. <div>
  248. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  249. </div>
  250. <div>
  251. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  252. </div>
  253. <div>
  254. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetAutoSize">View.GetAutoSize()</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetHotKeySpecifierLength_System_Boolean_">View.GetHotKeySpecifierLength(Boolean)</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTextFormatterBoundsSize">View.GetTextFormatterBoundsSize()</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetBoundsTextFormatterSize">View.GetBoundsTextFormatterSize()</a>
  267. </div>
  268. <div>
  269. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  270. </div>
  271. <div>
  272. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  276. </div>
  277. <div>
  278. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  279. </div>
  280. <div>
  281. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  282. </div>
  283. <div>
  284. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  285. </div>
  286. <div>
  287. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  288. </div>
  289. <div>
  290. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  291. </div>
  292. <div>
  293. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  294. </div>
  295. <div>
  296. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  297. </div>
  298. <div>
  299. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  300. </div>
  301. <div>
  302. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  303. </div>
  304. <div>
  305. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  306. </div>
  307. <div>
  308. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  309. </div>
  310. <div>
  311. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  312. </div>
  313. <div>
  314. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  315. </div>
  316. <div>
  317. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  318. </div>
  319. <div>
  320. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  321. </div>
  322. <div>
  323. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  324. </div>
  325. <div>
  326. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  327. </div>
  328. <div>
  329. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  330. </div>
  331. <div>
  332. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  333. </div>
  334. <div>
  335. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  336. </div>
  337. <div>
  338. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  339. </div>
  340. <div>
  341. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  342. </div>
  343. <div>
  344. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  345. </div>
  346. <div>
  347. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  348. </div>
  349. <div>
  350. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a>
  351. </div>
  352. <div>
  353. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  354. </div>
  355. <div>
  356. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  357. </div>
  358. <div>
  359. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  360. </div>
  361. <div>
  362. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  363. </div>
  364. <div>
  365. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  366. </div>
  367. <div>
  368. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  369. </div>
  370. <div>
  371. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  372. </div>
  373. <div>
  374. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  375. </div>
  376. <div>
  377. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  378. </div>
  379. <div>
  380. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  381. </div>
  382. <div>
  383. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ForceValidatePosDim">View.ForceValidatePosDim</a>
  384. </div>
  385. <div>
  386. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextFormatter">View.TextFormatter</a>
  387. </div>
  388. <div>
  389. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  390. </div>
  391. <div>
  392. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  393. </div>
  394. <div>
  395. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  396. </div>
  397. <div>
  398. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  399. </div>
  400. <div>
  401. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  402. </div>
  403. <div>
  404. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  405. </div>
  406. <div>
  407. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  408. </div>
  409. <div>
  410. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PreserveTrailingSpaces">View.PreserveTrailingSpaces</a>
  411. </div>
  412. <div>
  413. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  414. </div>
  415. <div>
  416. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  417. </div>
  418. <div>
  419. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  420. </div>
  421. <div>
  422. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  423. </div>
  424. <div>
  425. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsAdded">View.IsAdded</a>
  426. </div>
  427. <div>
  428. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  429. </div>
  430. <div>
  431. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  432. </div>
  433. <div>
  434. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  435. </div>
  436. <div>
  437. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  438. </div>
  439. <div>
  440. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  441. </div>
  442. <div>
  443. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  444. </div>
  445. <div>
  446. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  447. </div>
  448. <div>
  449. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  450. </div>
  451. <div>
  452. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  453. </div>
  454. <div>
  455. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  456. </div>
  457. <div>
  458. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  459. </div>
  460. <div>
  461. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  462. </div>
  463. <div>
  464. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  465. </div>
  466. <div>
  467. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  468. </div>
  469. <div>
  470. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  471. </div>
  472. <div>
  473. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  474. </div>
  475. <div>
  476. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  477. </div>
  478. <div>
  479. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  480. </div>
  481. <div>
  482. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  483. </div>
  484. <div>
  485. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  486. </div>
  487. <div>
  488. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  489. </div>
  490. <div>
  491. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  492. </div>
  493. <div>
  494. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  495. </div>
  496. </div>
  497. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  498. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  499. <h5 id="Terminal_Gui_HexView_syntax">Syntax</h5>
  500. <div class="codewrapper">
  501. <pre><code class="lang-csharp hljs">public class HexView : View</code></pre>
  502. </div>
  503. <h5 id="Terminal_Gui_HexView_remarks"><strong>Remarks</strong></h5>
  504. <div class="markdown level0 remarks">
  505. <p>
  506. <a class="xref" href="Terminal.Gui.HexView.html">HexView</a> provides a hex editor on top of a seekable <span class="xref">System.IO.Stream</span> with the left side showing an hex
  507. dump of the values in the <span class="xref">System.IO.Stream</span> and the right side showing the contents (filtered to
  508. non-control sequence ASCII characters).
  509. </p>
  510. <p>
  511. Users can switch from one side to the other by using the tab key.
  512. </p>
  513. <p>
  514. To enable editing, set <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_AllowEdits">AllowEdits</a> to true. When <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_AllowEdits">AllowEdits</a> is true
  515. the user can make changes to the hexadecimal values of the <span class="xref">System.IO.Stream</span>. Any changes are tracked
  516. in the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_Edits">Edits</a> property (a <span class="xref">System.Collections.Generic.SortedDictionary`2</span>) indicating
  517. the position where the changes were made and the new values. A convenience method, <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_ApplyEdits_System_IO_Stream_">ApplyEdits(Stream)</a>
  518. will apply the edits to the <span class="xref">System.IO.Stream</span>.
  519. </p>
  520. <p>
  521. Control the first byte shown by setting the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_DisplayStart">DisplayStart</a> property
  522. to an offset in the stream.
  523. </p>
  524. </div>
  525. <h3 id="constructors">Constructors
  526. </h3>
  527. <a id="Terminal_Gui_HexView__ctor_" data-uid="Terminal.Gui.HexView.#ctor*"></a>
  528. <h4 id="Terminal_Gui_HexView__ctor" data-uid="Terminal.Gui.HexView.#ctor">HexView()</h4>
  529. <div class="markdown level1 summary">
  530. Initializes a <a class="xref" href="Terminal.Gui.HexView.html">HexView</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout.
  531. </div>
  532. <div class="markdown level1 conceptual"></div>
  533. <h5 class="decalaration">Declaration</h5>
  534. <div class="codewrapper">
  535. <pre><code class="lang-csharp hljs">public HexView()</code></pre>
  536. </div>
  537. <a id="Terminal_Gui_HexView__ctor_" data-uid="Terminal.Gui.HexView.#ctor*"></a>
  538. <h4 id="Terminal_Gui_HexView__ctor_System_IO_Stream_" data-uid="Terminal.Gui.HexView.#ctor(System.IO.Stream)">HexView(Stream)</h4>
  539. <div class="markdown level1 summary">
  540. Initializes a <a class="xref" href="Terminal.Gui.HexView.html">HexView</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout.
  541. </div>
  542. <div class="markdown level1 conceptual"></div>
  543. <h5 class="decalaration">Declaration</h5>
  544. <div class="codewrapper">
  545. <pre><code class="lang-csharp hljs">public HexView(Stream source)</code></pre>
  546. </div>
  547. <h5 class="parameters">Parameters</h5>
  548. <table class="table table-bordered table-striped table-condensed">
  549. <thead>
  550. <tr>
  551. <th>Type</th>
  552. <th>Name</th>
  553. <th>Description</th>
  554. </tr>
  555. </thead>
  556. <tbody>
  557. <tr>
  558. <td><span class="xref">System.IO.Stream</span></td>
  559. <td><span class="parametername">source</span></td>
  560. <td>The <span class="xref">System.IO.Stream</span> to view and edit as hex, this <span class="xref">System.IO.Stream</span> must support seeking, or an exception will be thrown.</td>
  561. </tr>
  562. </tbody>
  563. </table>
  564. <h3 id="properties">Properties
  565. </h3>
  566. <a id="Terminal_Gui_HexView_AllowEdits_" data-uid="Terminal.Gui.HexView.AllowEdits*"></a>
  567. <h4 id="Terminal_Gui_HexView_AllowEdits" data-uid="Terminal.Gui.HexView.AllowEdits">AllowEdits</h4>
  568. <div class="markdown level1 summary">
  569. Gets or sets whether this <a class="xref" href="Terminal.Gui.HexView.html">HexView</a> allow editing of the <span class="xref">System.IO.Stream</span>
  570. of the underlying <span class="xref">System.IO.Stream</span>.
  571. </div>
  572. <div class="markdown level1 conceptual"></div>
  573. <h5 class="decalaration">Declaration</h5>
  574. <div class="codewrapper">
  575. <pre><code class="lang-csharp hljs">public bool AllowEdits { get; set; }</code></pre>
  576. </div>
  577. <h5 class="propertyValue">Property Value</h5>
  578. <table class="table table-bordered table-striped table-condensed">
  579. <thead>
  580. <tr>
  581. <th>Type</th>
  582. <th>Description</th>
  583. </tr>
  584. </thead>
  585. <tbody>
  586. <tr>
  587. <td><span class="xref">System.Boolean</span></td>
  588. <td><code>true</code> if allow edits; otherwise, <code>false</code>.</td>
  589. </tr>
  590. </tbody>
  591. </table>
  592. <a id="Terminal_Gui_HexView_BytesPerLine_" data-uid="Terminal.Gui.HexView.BytesPerLine*"></a>
  593. <h4 id="Terminal_Gui_HexView_BytesPerLine" data-uid="Terminal.Gui.HexView.BytesPerLine">BytesPerLine</h4>
  594. <div class="markdown level1 summary">
  595. The bytes length per line.
  596. </div>
  597. <div class="markdown level1 conceptual"></div>
  598. <h5 class="decalaration">Declaration</h5>
  599. <div class="codewrapper">
  600. <pre><code class="lang-csharp hljs">public int BytesPerLine { get; }</code></pre>
  601. </div>
  602. <h5 class="propertyValue">Property Value</h5>
  603. <table class="table table-bordered table-striped table-condensed">
  604. <thead>
  605. <tr>
  606. <th>Type</th>
  607. <th>Description</th>
  608. </tr>
  609. </thead>
  610. <tbody>
  611. <tr>
  612. <td><span class="xref">System.Int32</span></td>
  613. <td></td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <a id="Terminal_Gui_HexView_CursorPosition_" data-uid="Terminal.Gui.HexView.CursorPosition*"></a>
  618. <h4 id="Terminal_Gui_HexView_CursorPosition" data-uid="Terminal.Gui.HexView.CursorPosition">CursorPosition</h4>
  619. <div class="markdown level1 summary">
  620. Gets the current cursor position starting at one for both, line and column.
  621. </div>
  622. <div class="markdown level1 conceptual"></div>
  623. <h5 class="decalaration">Declaration</h5>
  624. <div class="codewrapper">
  625. <pre><code class="lang-csharp hljs">public Point CursorPosition { get; }</code></pre>
  626. </div>
  627. <h5 class="propertyValue">Property Value</h5>
  628. <table class="table table-bordered table-striped table-condensed">
  629. <thead>
  630. <tr>
  631. <th>Type</th>
  632. <th>Description</th>
  633. </tr>
  634. </thead>
  635. <tbody>
  636. <tr>
  637. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  638. <td></td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. <a id="Terminal_Gui_HexView_DesiredCursorVisibility_" data-uid="Terminal.Gui.HexView.DesiredCursorVisibility*"></a>
  643. <h4 id="Terminal_Gui_HexView_DesiredCursorVisibility" data-uid="Terminal.Gui.HexView.DesiredCursorVisibility">DesiredCursorVisibility</h4>
  644. <div class="markdown level1 summary">
  645. Get / Set the wished cursor when the field is focused
  646. </div>
  647. <div class="markdown level1 conceptual"></div>
  648. <h5 class="decalaration">Declaration</h5>
  649. <div class="codewrapper">
  650. <pre><code class="lang-csharp hljs">public CursorVisibility DesiredCursorVisibility { get; set; }</code></pre>
  651. </div>
  652. <h5 class="propertyValue">Property Value</h5>
  653. <table class="table table-bordered table-striped table-condensed">
  654. <thead>
  655. <tr>
  656. <th>Type</th>
  657. <th>Description</th>
  658. </tr>
  659. </thead>
  660. <tbody>
  661. <tr>
  662. <td><a class="xref" href="Terminal.Gui.CursorVisibility.html">CursorVisibility</a></td>
  663. <td></td>
  664. </tr>
  665. </tbody>
  666. </table>
  667. <a id="Terminal_Gui_HexView_DisplayStart_" data-uid="Terminal.Gui.HexView.DisplayStart*"></a>
  668. <h4 id="Terminal_Gui_HexView_DisplayStart" data-uid="Terminal.Gui.HexView.DisplayStart">DisplayStart</h4>
  669. <div class="markdown level1 summary">
  670. Sets or gets the offset into the <span class="xref">System.IO.Stream</span> that will displayed at the top of the <a class="xref" href="Terminal.Gui.HexView.html">HexView</a>
  671. </div>
  672. <div class="markdown level1 conceptual"></div>
  673. <h5 class="decalaration">Declaration</h5>
  674. <div class="codewrapper">
  675. <pre><code class="lang-csharp hljs">public long DisplayStart { get; set; }</code></pre>
  676. </div>
  677. <h5 class="propertyValue">Property Value</h5>
  678. <table class="table table-bordered table-striped table-condensed">
  679. <thead>
  680. <tr>
  681. <th>Type</th>
  682. <th>Description</th>
  683. </tr>
  684. </thead>
  685. <tbody>
  686. <tr>
  687. <td><span class="xref">System.Int64</span></td>
  688. <td>The display start.</td>
  689. </tr>
  690. </tbody>
  691. </table>
  692. <a id="Terminal_Gui_HexView_Edits_" data-uid="Terminal.Gui.HexView.Edits*"></a>
  693. <h4 id="Terminal_Gui_HexView_Edits" data-uid="Terminal.Gui.HexView.Edits">Edits</h4>
  694. <div class="markdown level1 summary">
  695. Gets a <span class="xref">System.Collections.Generic.SortedDictionary`2</span> describing the edits done to the <a class="xref" href="Terminal.Gui.HexView.html">HexView</a>.
  696. Each Key indicates an offset where an edit was made and the Value is the changed byte.
  697. </div>
  698. <div class="markdown level1 conceptual"></div>
  699. <h5 class="decalaration">Declaration</h5>
  700. <div class="codewrapper">
  701. <pre><code class="lang-csharp hljs">public IReadOnlyDictionary&lt;long, byte&gt; Edits { get; }</code></pre>
  702. </div>
  703. <h5 class="propertyValue">Property Value</h5>
  704. <table class="table table-bordered table-striped table-condensed">
  705. <thead>
  706. <tr>
  707. <th>Type</th>
  708. <th>Description</th>
  709. </tr>
  710. </thead>
  711. <tbody>
  712. <tr>
  713. <td><span class="xref">System.Collections.Generic.IReadOnlyDictionary</span>&lt;<span class="xref">System.Int64</span>, <span class="xref">System.Byte</span>&gt;</td>
  714. <td>The edits.</td>
  715. </tr>
  716. </tbody>
  717. </table>
  718. <a id="Terminal_Gui_HexView_Frame_" data-uid="Terminal.Gui.HexView.Frame*"></a>
  719. <h4 id="Terminal_Gui_HexView_Frame" data-uid="Terminal.Gui.HexView.Frame">Frame</h4>
  720. <div class="markdown level1 summary">
  721. Gets or sets the frame for the view. The frame is relative to the view&apos;s container (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>).
  722. </div>
  723. <div class="markdown level1 conceptual"></div>
  724. <h5 class="decalaration">Declaration</h5>
  725. <div class="codewrapper">
  726. <pre><code class="lang-csharp hljs">public override Rect Frame { get; set; }</code></pre>
  727. </div>
  728. <h5 class="propertyValue">Property Value</h5>
  729. <table class="table table-bordered table-striped table-condensed">
  730. <thead>
  731. <tr>
  732. <th>Type</th>
  733. <th>Description</th>
  734. </tr>
  735. </thead>
  736. <tbody>
  737. <tr>
  738. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  739. <td>The frame.</td>
  740. </tr>
  741. </tbody>
  742. </table>
  743. <h5 class="overrides">Overrides</h5>
  744. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a></div>
  745. <h5 id="Terminal_Gui_HexView_Frame_remarks">Remarks</h5>
  746. <div class="markdown level1 remarks">
  747. <p>
  748. Change the Frame when using the <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> layout style to move or resize views.
  749. </p>
  750. <p>
  751. Altering the Frame of a view will trigger the redrawing of the
  752. view as well as the redrawing of the affected regions of the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>.
  753. </p>
  754. </div>
  755. <a id="Terminal_Gui_HexView_Position_" data-uid="Terminal.Gui.HexView.Position*"></a>
  756. <h4 id="Terminal_Gui_HexView_Position" data-uid="Terminal.Gui.HexView.Position">Position</h4>
  757. <div class="markdown level1 summary">
  758. Gets the current character position starting at one, related to the <span class="xref">System.IO.Stream</span>.
  759. </div>
  760. <div class="markdown level1 conceptual"></div>
  761. <h5 class="decalaration">Declaration</h5>
  762. <div class="codewrapper">
  763. <pre><code class="lang-csharp hljs">public long Position { get; }</code></pre>
  764. </div>
  765. <h5 class="propertyValue">Property Value</h5>
  766. <table class="table table-bordered table-striped table-condensed">
  767. <thead>
  768. <tr>
  769. <th>Type</th>
  770. <th>Description</th>
  771. </tr>
  772. </thead>
  773. <tbody>
  774. <tr>
  775. <td><span class="xref">System.Int64</span></td>
  776. <td></td>
  777. </tr>
  778. </tbody>
  779. </table>
  780. <a id="Terminal_Gui_HexView_Source_" data-uid="Terminal.Gui.HexView.Source*"></a>
  781. <h4 id="Terminal_Gui_HexView_Source" data-uid="Terminal.Gui.HexView.Source">Source</h4>
  782. <div class="markdown level1 summary">
  783. Sets or gets the <span class="xref">System.IO.Stream</span> the <a class="xref" href="Terminal.Gui.HexView.html">HexView</a> is operating on; the stream must support seeking (<span class="xref">System.IO.Stream.CanSeek</span> == true).
  784. </div>
  785. <div class="markdown level1 conceptual"></div>
  786. <h5 class="decalaration">Declaration</h5>
  787. <div class="codewrapper">
  788. <pre><code class="lang-csharp hljs">public Stream Source { get; set; }</code></pre>
  789. </div>
  790. <h5 class="propertyValue">Property Value</h5>
  791. <table class="table table-bordered table-striped table-condensed">
  792. <thead>
  793. <tr>
  794. <th>Type</th>
  795. <th>Description</th>
  796. </tr>
  797. </thead>
  798. <tbody>
  799. <tr>
  800. <td><span class="xref">System.IO.Stream</span></td>
  801. <td>The source.</td>
  802. </tr>
  803. </tbody>
  804. </table>
  805. <h3 id="methods">Methods
  806. </h3>
  807. <a id="Terminal_Gui_HexView_ApplyEdits_" data-uid="Terminal.Gui.HexView.ApplyEdits*"></a>
  808. <h4 id="Terminal_Gui_HexView_ApplyEdits_System_IO_Stream_" data-uid="Terminal.Gui.HexView.ApplyEdits(System.IO.Stream)">ApplyEdits(Stream)</h4>
  809. <div class="markdown level1 summary">
  810. This method applies and edits made to the <span class="xref">System.IO.Stream</span> and resets the
  811. contents of the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_Edits">Edits</a> property.
  812. </div>
  813. <div class="markdown level1 conceptual"></div>
  814. <h5 class="decalaration">Declaration</h5>
  815. <div class="codewrapper">
  816. <pre><code class="lang-csharp hljs">public void ApplyEdits(Stream stream = null)</code></pre>
  817. </div>
  818. <h5 class="parameters">Parameters</h5>
  819. <table class="table table-bordered table-striped table-condensed">
  820. <thead>
  821. <tr>
  822. <th>Type</th>
  823. <th>Name</th>
  824. <th>Description</th>
  825. </tr>
  826. </thead>
  827. <tbody>
  828. <tr>
  829. <td><span class="xref">System.IO.Stream</span></td>
  830. <td><span class="parametername">stream</span></td>
  831. <td>If provided also applies the changes to the passed <span class="xref">System.IO.Stream</span></td>
  832. </tr>
  833. </tbody>
  834. </table>
  835. <a id="Terminal_Gui_HexView_DiscardEdits_" data-uid="Terminal.Gui.HexView.DiscardEdits*"></a>
  836. <h4 id="Terminal_Gui_HexView_DiscardEdits" data-uid="Terminal.Gui.HexView.DiscardEdits">DiscardEdits()</h4>
  837. <div class="markdown level1 summary">
  838. This method discards the edits made to the <span class="xref">System.IO.Stream</span> by resetting the
  839. contents of the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_Edits">Edits</a> property.
  840. </div>
  841. <div class="markdown level1 conceptual"></div>
  842. <h5 class="decalaration">Declaration</h5>
  843. <div class="codewrapper">
  844. <pre><code class="lang-csharp hljs">public void DiscardEdits()</code></pre>
  845. </div>
  846. <a id="Terminal_Gui_HexView_MouseEvent_" data-uid="Terminal.Gui.HexView.MouseEvent*"></a>
  847. <h4 id="Terminal_Gui_HexView_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.HexView.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  848. <div class="markdown level1 summary">
  849. Method invoked when a mouse event is generated
  850. </div>
  851. <div class="markdown level1 conceptual"></div>
  852. <h5 class="decalaration">Declaration</h5>
  853. <div class="codewrapper">
  854. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  855. </div>
  856. <h5 class="parameters">Parameters</h5>
  857. <table class="table table-bordered table-striped table-condensed">
  858. <thead>
  859. <tr>
  860. <th>Type</th>
  861. <th>Name</th>
  862. <th>Description</th>
  863. </tr>
  864. </thead>
  865. <tbody>
  866. <tr>
  867. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  868. <td><span class="parametername">me</span></td>
  869. <td></td>
  870. </tr>
  871. </tbody>
  872. </table>
  873. <h5 class="returns">Returns</h5>
  874. <table class="table table-bordered table-striped table-condensed">
  875. <thead>
  876. <tr>
  877. <th>Type</th>
  878. <th>Description</th>
  879. </tr>
  880. </thead>
  881. <tbody>
  882. <tr>
  883. <td><span class="xref">System.Boolean</span></td>
  884. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  885. </tr>
  886. </tbody>
  887. </table>
  888. <h5 class="overrides">Overrides</h5>
  889. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  890. <a id="Terminal_Gui_HexView_OnEdited_" data-uid="Terminal.Gui.HexView.OnEdited*"></a>
  891. <h4 id="Terminal_Gui_HexView_OnEdited_System_Collections_Generic_KeyValuePair_System_Int64_System_Byte__" data-uid="Terminal.Gui.HexView.OnEdited(System.Collections.Generic.KeyValuePair{System.Int64,System.Byte})">OnEdited(KeyValuePair&lt;Int64, Byte&gt;)</h4>
  892. <div class="markdown level1 summary">
  893. Method used to invoke the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_Edited">Edited</a> event passing the <span class="xref">System.Collections.Generic.KeyValuePair&lt;, &gt;</span>.
  894. </div>
  895. <div class="markdown level1 conceptual"></div>
  896. <h5 class="decalaration">Declaration</h5>
  897. <div class="codewrapper">
  898. <pre><code class="lang-csharp hljs">public virtual void OnEdited(KeyValuePair&lt;long, byte&gt; keyValuePair)</code></pre>
  899. </div>
  900. <h5 class="parameters">Parameters</h5>
  901. <table class="table table-bordered table-striped table-condensed">
  902. <thead>
  903. <tr>
  904. <th>Type</th>
  905. <th>Name</th>
  906. <th>Description</th>
  907. </tr>
  908. </thead>
  909. <tbody>
  910. <tr>
  911. <td><span class="xref">System.Collections.Generic.KeyValuePair</span>&lt;<span class="xref">System.Int64</span>, <span class="xref">System.Byte</span>&gt;</td>
  912. <td><span class="parametername">keyValuePair</span></td>
  913. <td>The key value pair.</td>
  914. </tr>
  915. </tbody>
  916. </table>
  917. <a id="Terminal_Gui_HexView_OnEnter_" data-uid="Terminal.Gui.HexView.OnEnter*"></a>
  918. <h4 id="Terminal_Gui_HexView_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.HexView.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  919. <div class="markdown level1 summary">
  920. Method invoked when a view gets focus.
  921. </div>
  922. <div class="markdown level1 conceptual"></div>
  923. <h5 class="decalaration">Declaration</h5>
  924. <div class="codewrapper">
  925. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  926. </div>
  927. <h5 class="parameters">Parameters</h5>
  928. <table class="table table-bordered table-striped table-condensed">
  929. <thead>
  930. <tr>
  931. <th>Type</th>
  932. <th>Name</th>
  933. <th>Description</th>
  934. </tr>
  935. </thead>
  936. <tbody>
  937. <tr>
  938. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  939. <td><span class="parametername">view</span></td>
  940. <td>The view that is losing focus.</td>
  941. </tr>
  942. </tbody>
  943. </table>
  944. <h5 class="returns">Returns</h5>
  945. <table class="table table-bordered table-striped table-condensed">
  946. <thead>
  947. <tr>
  948. <th>Type</th>
  949. <th>Description</th>
  950. </tr>
  951. </thead>
  952. <tbody>
  953. <tr>
  954. <td><span class="xref">System.Boolean</span></td>
  955. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  956. </tr>
  957. </tbody>
  958. </table>
  959. <h5 class="overrides">Overrides</h5>
  960. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  961. <a id="Terminal_Gui_HexView_OnPositionChanged_" data-uid="Terminal.Gui.HexView.OnPositionChanged*"></a>
  962. <h4 id="Terminal_Gui_HexView_OnPositionChanged" data-uid="Terminal.Gui.HexView.OnPositionChanged">OnPositionChanged()</h4>
  963. <div class="markdown level1 summary">
  964. Method used to invoke the <a class="xref" href="Terminal.Gui.HexView.html#Terminal_Gui_HexView_PositionChanged">PositionChanged</a> event passing the <a class="xref" href="Terminal.Gui.HexView.HexViewEventArgs.html">HexView.HexViewEventArgs</a> arguments.
  965. </div>
  966. <div class="markdown level1 conceptual"></div>
  967. <h5 class="decalaration">Declaration</h5>
  968. <div class="codewrapper">
  969. <pre><code class="lang-csharp hljs">public virtual void OnPositionChanged()</code></pre>
  970. </div>
  971. <a id="Terminal_Gui_HexView_PositionCursor_" data-uid="Terminal.Gui.HexView.PositionCursor*"></a>
  972. <h4 id="Terminal_Gui_HexView_PositionCursor" data-uid="Terminal.Gui.HexView.PositionCursor">PositionCursor()</h4>
  973. <div class="markdown level1 summary">
  974. Positions the cursor in the right position based on the currently focused view in the chain.
  975. </div>
  976. <div class="markdown level1 conceptual"></div>
  977. <h5 class="decalaration">Declaration</h5>
  978. <div class="codewrapper">
  979. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  980. </div>
  981. <h5 class="overrides">Overrides</h5>
  982. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  983. <a id="Terminal_Gui_HexView_ProcessKey_" data-uid="Terminal.Gui.HexView.ProcessKey*"></a>
  984. <h4 id="Terminal_Gui_HexView_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.HexView.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  985. <div class="markdown level1 summary">
  986. If the view is focused, gives the view a
  987. chance to process the keystroke.
  988. </div>
  989. <div class="markdown level1 conceptual"></div>
  990. <h5 class="decalaration">Declaration</h5>
  991. <div class="codewrapper">
  992. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  993. </div>
  994. <h5 class="parameters">Parameters</h5>
  995. <table class="table table-bordered table-striped table-condensed">
  996. <thead>
  997. <tr>
  998. <th>Type</th>
  999. <th>Name</th>
  1000. <th>Description</th>
  1001. </tr>
  1002. </thead>
  1003. <tbody>
  1004. <tr>
  1005. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1006. <td><span class="parametername">keyEvent</span></td>
  1007. <td>Contains the details about the key that produced the event.</td>
  1008. </tr>
  1009. </tbody>
  1010. </table>
  1011. <h5 class="returns">Returns</h5>
  1012. <table class="table table-bordered table-striped table-condensed">
  1013. <thead>
  1014. <tr>
  1015. <th>Type</th>
  1016. <th>Description</th>
  1017. </tr>
  1018. </thead>
  1019. <tbody>
  1020. <tr>
  1021. <td><span class="xref">System.Boolean</span></td>
  1022. <td></td>
  1023. </tr>
  1024. </tbody>
  1025. </table>
  1026. <h5 class="overrides">Overrides</h5>
  1027. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1028. <h5 id="Terminal_Gui_HexView_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1029. <div class="markdown level1 remarks">
  1030. <p>
  1031. Views can override this method if they are
  1032. interested in processing the given keystroke.
  1033. If they consume the keystroke, they must
  1034. return true to stop the keystroke from being
  1035. processed by other widgets or consumed by the
  1036. widget engine. If they return false, the
  1037. keystroke will be passed using the ProcessColdKey
  1038. method to other views to process.
  1039. </p>
  1040. <p>
  1041. The View implementation does nothing but return false,
  1042. so it is not necessary to call base.ProcessKey if you
  1043. derive directly from View, but you should if you derive
  1044. other View subclasses.
  1045. </p>
  1046. </div>
  1047. <a id="Terminal_Gui_HexView_Redraw_" data-uid="Terminal.Gui.HexView.Redraw*"></a>
  1048. <h4 id="Terminal_Gui_HexView_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.HexView.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1049. <div class="markdown level1 summary">
  1050. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  1051. </div>
  1052. <div class="markdown level1 conceptual"></div>
  1053. <h5 class="decalaration">Declaration</h5>
  1054. <div class="codewrapper">
  1055. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1056. </div>
  1057. <h5 class="parameters">Parameters</h5>
  1058. <table class="table table-bordered table-striped table-condensed">
  1059. <thead>
  1060. <tr>
  1061. <th>Type</th>
  1062. <th>Name</th>
  1063. <th>Description</th>
  1064. </tr>
  1065. </thead>
  1066. <tbody>
  1067. <tr>
  1068. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1069. <td><span class="parametername">bounds</span></td>
  1070. <td>The bounds (view-relative region) to redraw.</td>
  1071. </tr>
  1072. </tbody>
  1073. </table>
  1074. <h5 class="overrides">Overrides</h5>
  1075. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1076. <h5 id="Terminal_Gui_HexView_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1077. <div class="markdown level1 remarks">
  1078. <p>
  1079. Always use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> (view-relative) when calling <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a>, NOT <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> (superview-relative).
  1080. </p>
  1081. <p>
  1082. Views should set the color that they want to use on entry, as otherwise this will inherit
  1083. the last color that was set globally on the driver.
  1084. </p>
  1085. <p>
  1086. Overrides of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a> must ensure they do not set <code>Driver.Clip</code> to a clip region
  1087. larger than the <code>region</code> parameter.
  1088. </p>
  1089. </div>
  1090. <h3 id="events">Events
  1091. </h3>
  1092. <h4 id="Terminal_Gui_HexView_Edited" data-uid="Terminal.Gui.HexView.Edited">Edited</h4>
  1093. <div class="markdown level1 summary">
  1094. Event to be invoked when an edit is made on the <span class="xref">System.IO.Stream</span>.
  1095. </div>
  1096. <div class="markdown level1 conceptual"></div>
  1097. <h5 class="decalaration">Declaration</h5>
  1098. <div class="codewrapper">
  1099. <pre><code class="lang-csharp hljs">public event Action&lt;KeyValuePair&lt;long, byte&gt;&gt; Edited</code></pre>
  1100. </div>
  1101. <h5 class="eventType">Event Type</h5>
  1102. <table class="table table-bordered table-striped table-condensed">
  1103. <thead>
  1104. <tr>
  1105. <th>Type</th>
  1106. <th>Description</th>
  1107. </tr>
  1108. </thead>
  1109. <tbody>
  1110. <tr>
  1111. <td><span class="xref">System.Action</span>&lt;<span class="xref">System.Collections.Generic.KeyValuePair</span>&lt;<span class="xref">System.Int64</span>, <span class="xref">System.Byte</span>&gt;&gt;</td>
  1112. <td></td>
  1113. </tr>
  1114. </tbody>
  1115. </table>
  1116. <h4 id="Terminal_Gui_HexView_PositionChanged" data-uid="Terminal.Gui.HexView.PositionChanged">PositionChanged</h4>
  1117. <div class="markdown level1 summary">
  1118. Event to be invoked when the position and cursor position changes.
  1119. </div>
  1120. <div class="markdown level1 conceptual"></div>
  1121. <h5 class="decalaration">Declaration</h5>
  1122. <div class="codewrapper">
  1123. <pre><code class="lang-csharp hljs">public event Action&lt;HexView.HexViewEventArgs&gt; PositionChanged</code></pre>
  1124. </div>
  1125. <h5 class="eventType">Event Type</h5>
  1126. <table class="table table-bordered table-striped table-condensed">
  1127. <thead>
  1128. <tr>
  1129. <th>Type</th>
  1130. <th>Description</th>
  1131. </tr>
  1132. </thead>
  1133. <tbody>
  1134. <tr>
  1135. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.HexView.HexViewEventArgs.html">HexView.HexViewEventArgs</a>&gt;</td>
  1136. <td></td>
  1137. </tr>
  1138. </tbody>
  1139. </table>
  1140. <h3 id="implements">Implements</h3>
  1141. <div>
  1142. <span class="xref">System.IDisposable</span>
  1143. </div>
  1144. <div>
  1145. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1146. </div>
  1147. <div>
  1148. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1149. </div>
  1150. </article>
  1151. </div>
  1152. <div class="hidden-sm col-md-2" role="complementary">
  1153. <div class="sideaffix">
  1154. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1155. <h5>In This Article</h5>
  1156. <div></div>
  1157. </nav>
  1158. </div>
  1159. </div>
  1160. </div>
  1161. </div>
  1162. <footer>
  1163. <div class="grad-bottom"></div>
  1164. <div class="footer">
  1165. <div class="container">
  1166. <span class="pull-right">
  1167. <a href="#top">Back to top</a>
  1168. </span>
  1169. <span>Generated by <strong>DocFX</strong></span>
  1170. </div>
  1171. </div>
  1172. </footer>
  1173. </div>
  1174. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1175. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1176. <script type="text/javascript" src="../../styles/main.js"></script>
  1177. </body>
  1178. </html>