Terminal.Gui.HexView.html 49 KB

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