Terminal.Gui.View.html 166 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990
  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 View
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class View
  11. ">
  12. <meta name="generator" content="docfx 2.59.0.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.View">
  73. <h1 id="Terminal_Gui_View" data-uid="Terminal.Gui.View" class="text-break">Class View
  74. </h1>
  75. <div class="markdown level0 summary">
  76. View is the base class for all views on the screen and represents a visible element that can render itself and contains zero or more nested views.
  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"><span class="xref">View</span></div>
  84. <div class="level3"><a class="xref" href="Terminal.Gui.Button.html">Button</a></div>
  85. <div class="level3"><a class="xref" href="Terminal.Gui.CheckBox.html">CheckBox</a></div>
  86. <div class="level3"><a class="xref" href="Terminal.Gui.ComboBox.html">ComboBox</a></div>
  87. <div class="level3"><a class="xref" href="Terminal.Gui.FrameView.html">FrameView</a></div>
  88. <div class="level3"><a class="xref" href="Terminal.Gui.GraphView.html">GraphView</a></div>
  89. <div class="level3"><a class="xref" href="Terminal.Gui.HexView.html">HexView</a></div>
  90. <div class="level3"><a class="xref" href="Terminal.Gui.Label.html">Label</a></div>
  91. <div class="level3"><a class="xref" href="Terminal.Gui.ListView.html">ListView</a></div>
  92. <div class="level3"><a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a></div>
  93. <div class="level3"><a class="xref" href="Terminal.Gui.PanelView.html">PanelView</a></div>
  94. <div class="level3"><a class="xref" href="Terminal.Gui.ProgressBar.html">ProgressBar</a></div>
  95. <div class="level3"><a class="xref" href="Terminal.Gui.RadioGroup.html">RadioGroup</a></div>
  96. <div class="level3"><a class="xref" href="Terminal.Gui.ScrollBarView.html">ScrollBarView</a></div>
  97. <div class="level3"><a class="xref" href="Terminal.Gui.ScrollView.html">ScrollView</a></div>
  98. <div class="level3"><a class="xref" href="Terminal.Gui.StatusBar.html">StatusBar</a></div>
  99. <div class="level3"><a class="xref" href="Terminal.Gui.TableView.html">TableView</a></div>
  100. <div class="level3"><a class="xref" href="Terminal.Gui.TabView.html">TabView</a></div>
  101. <div class="level3"><a class="xref" href="Terminal.Gui.TextField.html">TextField</a></div>
  102. <div class="level3"><a class="xref" href="Terminal.Gui.TextValidateField.html">TextValidateField</a></div>
  103. <div class="level3"><a class="xref" href="Terminal.Gui.TextView.html">TextView</a></div>
  104. <div class="level3"><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></div>
  105. <div class="level3"><a class="xref" href="Terminal.Gui.TreeView-1.html">TreeView&lt;T&gt;</a></div>
  106. <div class="level3"><a class="xref" href="Terminal.Gui.Views.LineView.html">LineView</a></div>
  107. </div>
  108. <div classs="implements">
  109. <h5>Implements</h5>
  110. <div><span class="xref">System.IDisposable</span></div>
  111. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  112. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  113. </div>
  114. <div class="inheritedMembers">
  115. <h5>Inherited Members</h5>
  116. <div>
  117. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a>
  118. </div>
  119. <div>
  120. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  121. </div>
  122. <div>
  123. <span class="xref">System.Object.Equals(System.Object)</span>
  124. </div>
  125. <div>
  126. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  127. </div>
  128. <div>
  129. <span class="xref">System.Object.GetHashCode()</span>
  130. </div>
  131. <div>
  132. <span class="xref">System.Object.GetType()</span>
  133. </div>
  134. <div>
  135. <span class="xref">System.Object.MemberwiseClone()</span>
  136. </div>
  137. <div>
  138. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  139. </div>
  140. </div>
  141. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  142. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  143. <h5 id="Terminal_Gui_View_syntax">Syntax</h5>
  144. <div class="codewrapper">
  145. <pre><code class="lang-csharp hljs">public class View : Responder, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  146. </div>
  147. <h5 id="Terminal_Gui_View_remarks"><strong>Remarks</strong></h5>
  148. <div class="markdown level0 remarks">
  149. <p>
  150. The View defines the base functionality for user interface elements in Terminal.Gui. Views
  151. can contain one or more subviews, can respond to user input and render themselves on the screen.
  152. </p>
  153. <p>
  154. Views supports two layout styles: Absolute or Computed. The choice as to which layout style is used by the View
  155. is determined when the View is initialized. To create a View using Absolute layout, call a constructor that takes a
  156. Rect parameter to specify the absolute position and size (the <code>View.<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a></code>)/. To create a View
  157. using Computed layout use a constructor that does not take a Rect parameter and set the X, Y, Width and Height
  158. properties on the view. Both approaches use coordinates that are relative to the container they are being added to.
  159. </p>
  160. <p>
  161. To switch between Absolute and Computed layout, use the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> property.
  162. </p>
  163. <p>
  164. Computed layout is more flexible and supports dynamic console apps where controls adjust layout
  165. as the terminal resizes or other Views change size or position. The X, Y, Width and Height
  166. properties are Dim and Pos objects that dynamically update the position of a view.
  167. The X and Y properties are of type <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>
  168. and you can use either absolute positions, percentages or anchor
  169. points. The Width and Height properties are of type
  170. <a class="xref" href="Terminal.Gui.Dim.html">Dim</a> and can use absolute position,
  171. percentages and anchors. These are useful as they will take
  172. care of repositioning views when view&apos;s frames are resized or
  173. if the terminal size changes.
  174. </p>
  175. <p>
  176. Absolute layout requires specifying coordinates and sizes of Views explicitly, and the
  177. View will typically stay in a fixed position and size. To change the position and size use the
  178. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> property.
  179. </p>
  180. <p>
  181. Subviews (child views) can be added to a View by calling the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> method.
  182. The container of a View can be accessed with the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a> property.
  183. </p>
  184. <p>
  185. To flag a region of the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> to be redrawn call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">SetNeedsDisplay(Rect)</a>. To flag the entire view
  186. for redraw call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a>.
  187. </p>
  188. <p>
  189. Views have a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> property that defines the default colors that subviews
  190. should use for rendering. This ensures that the views fit in the context where
  191. they are being used, and allows for themes to be plugged in. For example, the
  192. default colors for windows and toplevels uses a blue background, while it uses
  193. a white background for dialog boxes and a red background for errors.
  194. </p>
  195. <p>
  196. Subclasses should not rely on <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> being
  197. set at construction time. If a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> is not set on a view, the view will inherit the
  198. value from its <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a> and the value might only be valid once a view has been
  199. added to a SuperView.
  200. </p>
  201. <p>
  202. By using <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> applications will work both
  203. in color as well as black and white displays.
  204. </p>
  205. <p>
  206. Views that are focusable should implement the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">PositionCursor()</a> to make sure that
  207. the cursor is placed in a location that makes sense. Unix terminals do not have
  208. a way of hiding the cursor, so it can be distracting to have the cursor left at
  209. the last focused view. So views should make sure that they place the cursor
  210. in a visually sensible place.
  211. </p>
  212. <p>
  213. The <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">LayoutSubviews()</a> method is invoked when the size or layout of a view has
  214. changed. The default processing system will keep the size and dimensions
  215. for views that use the <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>, and will recompute the
  216. frames for the vies that use <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  217. </p>
  218. </div>
  219. <h3 id="constructors">Constructors
  220. </h3>
  221. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  222. <h4 id="Terminal_Gui_View__ctor" data-uid="Terminal.Gui.View.#ctor">View()</h4>
  223. <div class="markdown level1 summary">
  224. Initializes a new instance of <a class="xref" href="Terminal.Gui.View.html">View</a> using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout.
  225. </div>
  226. <div class="markdown level1 conceptual"></div>
  227. <h5 class="decalaration">Declaration</h5>
  228. <div class="codewrapper">
  229. <pre><code class="lang-csharp hljs">public View()</code></pre>
  230. </div>
  231. <h5 id="Terminal_Gui_View__ctor_remarks">Remarks</h5>
  232. <div class="markdown level1 remarks">
  233. <p>
  234. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">X</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">Y</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a>, and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> properties to dynamically control the size and location of the view.
  235. The <a class="xref" href="Terminal.Gui.Label.html">Label</a> will be created using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>
  236. coordinates. The initial size (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> will be
  237. adjusted to fit the contents of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a>, including newlines (&apos;\n&apos;) for multiple lines.
  238. </p>
  239. <p>
  240. If <code>Height</code> is greater than one, word wrapping is provided.
  241. </p>
  242. <p>
  243. This constructor initialize a View with a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  244. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">X</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">Y</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a>, and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> properties to dynamically control the size and location of the view.
  245. </p>
  246. </div>
  247. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  248. <h4 id="Terminal_Gui_View__ctor_NStack_ustring_Terminal_Gui_TextDirection_Terminal_Gui_Border_" data-uid="Terminal.Gui.View.#ctor(NStack.ustring,Terminal.Gui.TextDirection,Terminal.Gui.Border)">View(ustring, TextDirection, Border)</h4>
  249. <div class="markdown level1 summary">
  250. Initializes a new instance of <a class="xref" href="Terminal.Gui.View.html">View</a> using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout.
  251. </div>
  252. <div class="markdown level1 conceptual"></div>
  253. <h5 class="decalaration">Declaration</h5>
  254. <div class="codewrapper">
  255. <pre><code class="lang-csharp hljs">public View(ustring text, TextDirection direction = TextDirection.LeftRight_TopBottom, Border border = null)</code></pre>
  256. </div>
  257. <h5 class="parameters">Parameters</h5>
  258. <table class="table table-bordered table-striped table-condensed">
  259. <thead>
  260. <tr>
  261. <th>Type</th>
  262. <th>Name</th>
  263. <th>Description</th>
  264. </tr>
  265. </thead>
  266. <tbody>
  267. <tr>
  268. <td><span class="xref">NStack.ustring</span></td>
  269. <td><span class="parametername">text</span></td>
  270. <td>text to initialize the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> property with.</td>
  271. </tr>
  272. <tr>
  273. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  274. <td><span class="parametername">direction</span></td>
  275. <td>The text direction.</td>
  276. </tr>
  277. <tr>
  278. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  279. <td><span class="parametername">border</span></td>
  280. <td>The <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">Border</a>.</td>
  281. </tr>
  282. </tbody>
  283. </table>
  284. <h5 id="Terminal_Gui_View__ctor_NStack_ustring_Terminal_Gui_TextDirection_Terminal_Gui_Border__remarks">Remarks</h5>
  285. <div class="markdown level1 remarks">
  286. <p>
  287. The <a class="xref" href="Terminal.Gui.View.html">View</a> will be created using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>
  288. coordinates with the given string. The initial size (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> will be
  289. adjusted to fit the contents of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a>, including newlines (&apos;\n&apos;) for multiple lines.
  290. </p>
  291. <p>
  292. If <code>Height</code> is greater than one, word wrapping is provided.
  293. </p>
  294. </div>
  295. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  296. <h4 id="Terminal_Gui_View__ctor_System_Int32_System_Int32_NStack_ustring_" data-uid="Terminal.Gui.View.#ctor(System.Int32,System.Int32,NStack.ustring)">View(Int32, Int32, ustring)</h4>
  297. <div class="markdown level1 summary">
  298. Initializes a new instance of <a class="xref" href="Terminal.Gui.View.html">View</a> using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> layout.
  299. </div>
  300. <div class="markdown level1 conceptual"></div>
  301. <h5 class="decalaration">Declaration</h5>
  302. <div class="codewrapper">
  303. <pre><code class="lang-csharp hljs">public View(int x, int y, ustring text)</code></pre>
  304. </div>
  305. <h5 class="parameters">Parameters</h5>
  306. <table class="table table-bordered table-striped table-condensed">
  307. <thead>
  308. <tr>
  309. <th>Type</th>
  310. <th>Name</th>
  311. <th>Description</th>
  312. </tr>
  313. </thead>
  314. <tbody>
  315. <tr>
  316. <td><span class="xref">System.Int32</span></td>
  317. <td><span class="parametername">x</span></td>
  318. <td>column to locate the Label.</td>
  319. </tr>
  320. <tr>
  321. <td><span class="xref">System.Int32</span></td>
  322. <td><span class="parametername">y</span></td>
  323. <td>row to locate the Label.</td>
  324. </tr>
  325. <tr>
  326. <td><span class="xref">NStack.ustring</span></td>
  327. <td><span class="parametername">text</span></td>
  328. <td>text to initialize the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> property with.</td>
  329. </tr>
  330. </tbody>
  331. </table>
  332. <h5 id="Terminal_Gui_View__ctor_System_Int32_System_Int32_NStack_ustring__remarks">Remarks</h5>
  333. <div class="markdown level1 remarks">
  334. <p>
  335. The <a class="xref" href="Terminal.Gui.View.html">View</a> will be created at the given
  336. coordinates with the given string. The size (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> will be
  337. adjusted to fit the contents of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a>, including newlines (&apos;\n&apos;) for multiple lines.
  338. </p>
  339. <p>
  340. No line wrapping is provided.
  341. </p>
  342. </div>
  343. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  344. <h4 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.#ctor(Terminal.Gui.Rect)">View(Rect)</h4>
  345. <div class="markdown level1 summary">
  346. Initializes a new instance of a <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> <a class="xref" href="Terminal.Gui.View.html">View</a> class with the absolute
  347. dimensions specified in the <code>frame</code> parameter.
  348. </div>
  349. <div class="markdown level1 conceptual"></div>
  350. <h5 class="decalaration">Declaration</h5>
  351. <div class="codewrapper">
  352. <pre><code class="lang-csharp hljs">public View(Rect frame)</code></pre>
  353. </div>
  354. <h5 class="parameters">Parameters</h5>
  355. <table class="table table-bordered table-striped table-condensed">
  356. <thead>
  357. <tr>
  358. <th>Type</th>
  359. <th>Name</th>
  360. <th>Description</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr>
  365. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  366. <td><span class="parametername">frame</span></td>
  367. <td>The region covered by this view.</td>
  368. </tr>
  369. </tbody>
  370. </table>
  371. <h5 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect__remarks">Remarks</h5>
  372. <div class="markdown level1 remarks">
  373. This constructor initialize a View with a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View__ctor">View()</a> to
  374. initialize a View with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>
  375. </div>
  376. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  377. <h4 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect_NStack_ustring_Terminal_Gui_Border_" data-uid="Terminal.Gui.View.#ctor(Terminal.Gui.Rect,NStack.ustring,Terminal.Gui.Border)">View(Rect, ustring, Border)</h4>
  378. <div class="markdown level1 summary">
  379. Initializes a new instance of <a class="xref" href="Terminal.Gui.View.html">View</a> using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> layout.
  380. </div>
  381. <div class="markdown level1 conceptual"></div>
  382. <h5 class="decalaration">Declaration</h5>
  383. <div class="codewrapper">
  384. <pre><code class="lang-csharp hljs">public View(Rect rect, ustring text, Border border = null)</code></pre>
  385. </div>
  386. <h5 class="parameters">Parameters</h5>
  387. <table class="table table-bordered table-striped table-condensed">
  388. <thead>
  389. <tr>
  390. <th>Type</th>
  391. <th>Name</th>
  392. <th>Description</th>
  393. </tr>
  394. </thead>
  395. <tbody>
  396. <tr>
  397. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  398. <td><span class="parametername">rect</span></td>
  399. <td>Location.</td>
  400. </tr>
  401. <tr>
  402. <td><span class="xref">NStack.ustring</span></td>
  403. <td><span class="parametername">text</span></td>
  404. <td>text to initialize the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> property with.</td>
  405. </tr>
  406. <tr>
  407. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  408. <td><span class="parametername">border</span></td>
  409. <td>The <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">Border</a>.</td>
  410. </tr>
  411. </tbody>
  412. </table>
  413. <h5 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect_NStack_ustring_Terminal_Gui_Border__remarks">Remarks</h5>
  414. <div class="markdown level1 remarks">
  415. <p>
  416. The <a class="xref" href="Terminal.Gui.View.html">View</a> will be created at the given
  417. coordinates with the given string. The initial size (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> will be
  418. adjusted to fit the contents of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a>, including newlines (&apos;\n&apos;) for multiple lines.
  419. </p>
  420. <p>
  421. If <code>rect.Height</code> is greater than one, word wrapping is provided.
  422. </p>
  423. </div>
  424. <h3 id="properties">Properties
  425. </h3>
  426. <a id="Terminal_Gui_View_AutoSize_" data-uid="Terminal.Gui.View.AutoSize*"></a>
  427. <h4 id="Terminal_Gui_View_AutoSize" data-uid="Terminal.Gui.View.AutoSize">AutoSize</h4>
  428. <div class="markdown level1 summary">
  429. Used by <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> to resize the view&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> with the <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_Size">Size</a>.
  430. Setting <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">AutoSize</a> to true only work if the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a> and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> are null or
  431. <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> values and doesn&apos;t work with <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout,
  432. to avoid breaking the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> and <a class="xref" href="Terminal.Gui.Dim.html">Dim</a> settings.
  433. </div>
  434. <div class="markdown level1 conceptual"></div>
  435. <h5 class="decalaration">Declaration</h5>
  436. <div class="codewrapper">
  437. <pre><code class="lang-csharp hljs">public virtual bool AutoSize { get; set; }</code></pre>
  438. </div>
  439. <h5 class="propertyValue">Property Value</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Description</th>
  445. </tr>
  446. </thead>
  447. <tbody>
  448. <tr>
  449. <td><span class="xref">System.Boolean</span></td>
  450. <td></td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. <a id="Terminal_Gui_View_Border_" data-uid="Terminal.Gui.View.Border*"></a>
  455. <h4 id="Terminal_Gui_View_Border" data-uid="Terminal.Gui.View.Border">Border</h4>
  456. <div class="markdown level1 summary"></div>
  457. <div class="markdown level1 conceptual"></div>
  458. <h5 class="decalaration">Declaration</h5>
  459. <div class="codewrapper">
  460. <pre><code class="lang-csharp hljs">public virtual Border Border { get; set; }</code></pre>
  461. </div>
  462. <h5 class="propertyValue">Property Value</h5>
  463. <table class="table table-bordered table-striped table-condensed">
  464. <thead>
  465. <tr>
  466. <th>Type</th>
  467. <th>Description</th>
  468. </tr>
  469. </thead>
  470. <tbody>
  471. <tr>
  472. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  473. <td></td>
  474. </tr>
  475. </tbody>
  476. </table>
  477. <a id="Terminal_Gui_View_Bounds_" data-uid="Terminal.Gui.View.Bounds*"></a>
  478. <h4 id="Terminal_Gui_View_Bounds" data-uid="Terminal.Gui.View.Bounds">Bounds</h4>
  479. <div class="markdown level1 summary">
  480. The bounds represent the View-relative rectangle used for this view; the area inside of the view.
  481. </div>
  482. <div class="markdown level1 conceptual"></div>
  483. <h5 class="decalaration">Declaration</h5>
  484. <div class="codewrapper">
  485. <pre><code class="lang-csharp hljs">public Rect Bounds { get; set; }</code></pre>
  486. </div>
  487. <h5 class="propertyValue">Property Value</h5>
  488. <table class="table table-bordered table-striped table-condensed">
  489. <thead>
  490. <tr>
  491. <th>Type</th>
  492. <th>Description</th>
  493. </tr>
  494. </thead>
  495. <tbody>
  496. <tr>
  497. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  498. <td>The bounds.</td>
  499. </tr>
  500. </tbody>
  501. </table>
  502. <h5 id="Terminal_Gui_View_Bounds_remarks">Remarks</h5>
  503. <div class="markdown level1 remarks">
  504. <p>
  505. Updates to the Bounds update the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>,
  506. and has the same side effects as updating the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>.
  507. </p>
  508. <p>
  509. Because <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> coordinates are relative to the upper-left corner of the <a class="xref" href="Terminal.Gui.View.html">View</a>,
  510. the coordinates of the upper-left corner of the rectangle returned by this property are (0,0).
  511. Use this property to obtain the size and coordinates of the client area of the
  512. control for tasks such as drawing on the surface of the control.
  513. </p>
  514. </div>
  515. <a id="Terminal_Gui_View_CanFocus_" data-uid="Terminal.Gui.View.CanFocus*"></a>
  516. <h4 id="Terminal_Gui_View_CanFocus" data-uid="Terminal.Gui.View.CanFocus">CanFocus</h4>
  517. <div class="markdown level1 summary"></div>
  518. <div class="markdown level1 conceptual"></div>
  519. <h5 class="decalaration">Declaration</h5>
  520. <div class="codewrapper">
  521. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; set; }</code></pre>
  522. </div>
  523. <h5 class="propertyValue">Property Value</h5>
  524. <table class="table table-bordered table-striped table-condensed">
  525. <thead>
  526. <tr>
  527. <th>Type</th>
  528. <th>Description</th>
  529. </tr>
  530. </thead>
  531. <tbody>
  532. <tr>
  533. <td><span class="xref">System.Boolean</span></td>
  534. <td></td>
  535. </tr>
  536. </tbody>
  537. </table>
  538. <h5 class="overrides">Overrides</h5>
  539. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_CanFocus">Responder.CanFocus</a></div>
  540. <a id="Terminal_Gui_View_ColorScheme_" data-uid="Terminal.Gui.View.ColorScheme*"></a>
  541. <h4 id="Terminal_Gui_View_ColorScheme" data-uid="Terminal.Gui.View.ColorScheme">ColorScheme</h4>
  542. <div class="markdown level1 summary">
  543. The color scheme for this view, if it is not defined, it returns the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>&apos;s
  544. color scheme.
  545. </div>
  546. <div class="markdown level1 conceptual"></div>
  547. <h5 class="decalaration">Declaration</h5>
  548. <div class="codewrapper">
  549. <pre><code class="lang-csharp hljs">public virtual ColorScheme ColorScheme { get; set; }</code></pre>
  550. </div>
  551. <h5 class="propertyValue">Property Value</h5>
  552. <table class="table table-bordered table-striped table-condensed">
  553. <thead>
  554. <tr>
  555. <th>Type</th>
  556. <th>Description</th>
  557. </tr>
  558. </thead>
  559. <tbody>
  560. <tr>
  561. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  562. <td></td>
  563. </tr>
  564. </tbody>
  565. </table>
  566. <a id="Terminal_Gui_View_Data_" data-uid="Terminal.Gui.View.Data*"></a>
  567. <h4 id="Terminal_Gui_View_Data" data-uid="Terminal.Gui.View.Data">Data</h4>
  568. <div class="markdown level1 summary">
  569. Gets or sets arbitrary data for the view.
  570. </div>
  571. <div class="markdown level1 conceptual"></div>
  572. <h5 class="decalaration">Declaration</h5>
  573. <div class="codewrapper">
  574. <pre><code class="lang-csharp hljs">public object Data { get; set; }</code></pre>
  575. </div>
  576. <h5 class="propertyValue">Property Value</h5>
  577. <table class="table table-bordered table-striped table-condensed">
  578. <thead>
  579. <tr>
  580. <th>Type</th>
  581. <th>Description</th>
  582. </tr>
  583. </thead>
  584. <tbody>
  585. <tr>
  586. <td><span class="xref">System.Object</span></td>
  587. <td></td>
  588. </tr>
  589. </tbody>
  590. </table>
  591. <h5 id="Terminal_Gui_View_Data_remarks">Remarks</h5>
  592. <div class="markdown level1 remarks">This property is not used internally.</div>
  593. <a id="Terminal_Gui_View_Driver_" data-uid="Terminal.Gui.View.Driver*"></a>
  594. <h4 id="Terminal_Gui_View_Driver" data-uid="Terminal.Gui.View.Driver">Driver</h4>
  595. <div class="markdown level1 summary">
  596. Points to the current driver in use by the view, it is a convenience property
  597. for simplifying the development of new views.
  598. </div>
  599. <div class="markdown level1 conceptual"></div>
  600. <h5 class="decalaration">Declaration</h5>
  601. <div class="codewrapper">
  602. <pre><code class="lang-csharp hljs">public static ConsoleDriver Driver { get; }</code></pre>
  603. </div>
  604. <h5 class="propertyValue">Property Value</h5>
  605. <table class="table table-bordered table-striped table-condensed">
  606. <thead>
  607. <tr>
  608. <th>Type</th>
  609. <th>Description</th>
  610. </tr>
  611. </thead>
  612. <tbody>
  613. <tr>
  614. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  615. <td></td>
  616. </tr>
  617. </tbody>
  618. </table>
  619. <a id="Terminal_Gui_View_Enabled_" data-uid="Terminal.Gui.View.Enabled*"></a>
  620. <h4 id="Terminal_Gui_View_Enabled" data-uid="Terminal.Gui.View.Enabled">Enabled</h4>
  621. <div class="markdown level1 summary"></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 override bool Enabled { get; set; }</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><span class="xref">System.Boolean</span></td>
  638. <td></td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. <h5 class="overrides">Overrides</h5>
  643. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Enabled">Responder.Enabled</a></div>
  644. <a id="Terminal_Gui_View_Focused_" data-uid="Terminal.Gui.View.Focused*"></a>
  645. <h4 id="Terminal_Gui_View_Focused" data-uid="Terminal.Gui.View.Focused">Focused</h4>
  646. <div class="markdown level1 summary">
  647. Returns the currently focused view inside this view, or null if nothing is focused.
  648. </div>
  649. <div class="markdown level1 conceptual"></div>
  650. <h5 class="decalaration">Declaration</h5>
  651. <div class="codewrapper">
  652. <pre><code class="lang-csharp hljs">public View Focused { get; }</code></pre>
  653. </div>
  654. <h5 class="propertyValue">Property Value</h5>
  655. <table class="table table-bordered table-striped table-condensed">
  656. <thead>
  657. <tr>
  658. <th>Type</th>
  659. <th>Description</th>
  660. </tr>
  661. </thead>
  662. <tbody>
  663. <tr>
  664. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  665. <td>The focused.</td>
  666. </tr>
  667. </tbody>
  668. </table>
  669. <a id="Terminal_Gui_View_Frame_" data-uid="Terminal.Gui.View.Frame*"></a>
  670. <h4 id="Terminal_Gui_View_Frame" data-uid="Terminal.Gui.View.Frame">Frame</h4>
  671. <div class="markdown level1 summary">
  672. 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>).
  673. </div>
  674. <div class="markdown level1 conceptual"></div>
  675. <h5 class="decalaration">Declaration</h5>
  676. <div class="codewrapper">
  677. <pre><code class="lang-csharp hljs">public virtual Rect Frame { get; set; }</code></pre>
  678. </div>
  679. <h5 class="propertyValue">Property Value</h5>
  680. <table class="table table-bordered table-striped table-condensed">
  681. <thead>
  682. <tr>
  683. <th>Type</th>
  684. <th>Description</th>
  685. </tr>
  686. </thead>
  687. <tbody>
  688. <tr>
  689. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  690. <td>The frame.</td>
  691. </tr>
  692. </tbody>
  693. </table>
  694. <h5 id="Terminal_Gui_View_Frame_remarks">Remarks</h5>
  695. <div class="markdown level1 remarks">
  696. <p>
  697. 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.
  698. </p>
  699. <p>
  700. Altering the Frame of a view will trigger the redrawing of the
  701. 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>.
  702. </p>
  703. </div>
  704. <a id="Terminal_Gui_View_HasFocus_" data-uid="Terminal.Gui.View.HasFocus*"></a>
  705. <h4 id="Terminal_Gui_View_HasFocus" data-uid="Terminal.Gui.View.HasFocus">HasFocus</h4>
  706. <div class="markdown level1 summary"></div>
  707. <div class="markdown level1 conceptual"></div>
  708. <h5 class="decalaration">Declaration</h5>
  709. <div class="codewrapper">
  710. <pre><code class="lang-csharp hljs">public override bool HasFocus { get; }</code></pre>
  711. </div>
  712. <h5 class="propertyValue">Property Value</h5>
  713. <table class="table table-bordered table-striped table-condensed">
  714. <thead>
  715. <tr>
  716. <th>Type</th>
  717. <th>Description</th>
  718. </tr>
  719. </thead>
  720. <tbody>
  721. <tr>
  722. <td><span class="xref">System.Boolean</span></td>
  723. <td></td>
  724. </tr>
  725. </tbody>
  726. </table>
  727. <h5 class="overrides">Overrides</h5>
  728. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_HasFocus">Responder.HasFocus</a></div>
  729. <a id="Terminal_Gui_View_Height_" data-uid="Terminal.Gui.View.Height*"></a>
  730. <h4 id="Terminal_Gui_View_Height" data-uid="Terminal.Gui.View.Height">Height</h4>
  731. <div class="markdown level1 summary">
  732. Gets or sets the height of the view. Only used the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  733. </div>
  734. <div class="markdown level1 conceptual"></div>
  735. <h5 class="decalaration">Declaration</h5>
  736. <div class="codewrapper">
  737. <pre><code class="lang-csharp hljs">public Dim Height { get; set; }</code></pre>
  738. </div>
  739. <h5 class="propertyValue">Property Value</h5>
  740. <table class="table table-bordered table-striped table-condensed">
  741. <thead>
  742. <tr>
  743. <th>Type</th>
  744. <th>Description</th>
  745. </tr>
  746. </thead>
  747. <tbody>
  748. <tr>
  749. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  750. <td>The height.</td>
  751. </tr>
  752. </tbody>
  753. </table>
  754. <a id="Terminal_Gui_View_HotKey_" data-uid="Terminal.Gui.View.HotKey*"></a>
  755. <h4 id="Terminal_Gui_View_HotKey" data-uid="Terminal.Gui.View.HotKey">HotKey</h4>
  756. <div class="markdown level1 summary">
  757. Gets or sets the HotKey defined for this view. A user pressing HotKey on the keyboard while this view has focus will cause the Clicked event to fire.
  758. </div>
  759. <div class="markdown level1 conceptual"></div>
  760. <h5 class="decalaration">Declaration</h5>
  761. <div class="codewrapper">
  762. <pre><code class="lang-csharp hljs">public virtual Key HotKey { get; set; }</code></pre>
  763. </div>
  764. <h5 class="propertyValue">Property Value</h5>
  765. <table class="table table-bordered table-striped table-condensed">
  766. <thead>
  767. <tr>
  768. <th>Type</th>
  769. <th>Description</th>
  770. </tr>
  771. </thead>
  772. <tbody>
  773. <tr>
  774. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  775. <td></td>
  776. </tr>
  777. </tbody>
  778. </table>
  779. <a id="Terminal_Gui_View_HotKeySpecifier_" data-uid="Terminal.Gui.View.HotKeySpecifier*"></a>
  780. <h4 id="Terminal_Gui_View_HotKeySpecifier" data-uid="Terminal.Gui.View.HotKeySpecifier">HotKeySpecifier</h4>
  781. <div class="markdown level1 summary">
  782. Gets or sets the specifier character for the hotkey (e.g. &apos;_&apos;). Set to &apos;\xffff&apos; to disable hotkey support for this View instance. The default is &apos;\xffff&apos;.
  783. </div>
  784. <div class="markdown level1 conceptual"></div>
  785. <h5 class="decalaration">Declaration</h5>
  786. <div class="codewrapper">
  787. <pre><code class="lang-csharp hljs">public virtual Rune HotKeySpecifier { get; set; }</code></pre>
  788. </div>
  789. <h5 class="propertyValue">Property Value</h5>
  790. <table class="table table-bordered table-striped table-condensed">
  791. <thead>
  792. <tr>
  793. <th>Type</th>
  794. <th>Description</th>
  795. </tr>
  796. </thead>
  797. <tbody>
  798. <tr>
  799. <td><span class="xref">System.Rune</span></td>
  800. <td></td>
  801. </tr>
  802. </tbody>
  803. </table>
  804. <a id="Terminal_Gui_View_Id_" data-uid="Terminal.Gui.View.Id*"></a>
  805. <h4 id="Terminal_Gui_View_Id" data-uid="Terminal.Gui.View.Id">Id</h4>
  806. <div class="markdown level1 summary">
  807. Gets or sets an identifier for the view;
  808. </div>
  809. <div class="markdown level1 conceptual"></div>
  810. <h5 class="decalaration">Declaration</h5>
  811. <div class="codewrapper">
  812. <pre><code class="lang-csharp hljs">public ustring Id { get; set; }</code></pre>
  813. </div>
  814. <h5 class="propertyValue">Property Value</h5>
  815. <table class="table table-bordered table-striped table-condensed">
  816. <thead>
  817. <tr>
  818. <th>Type</th>
  819. <th>Description</th>
  820. </tr>
  821. </thead>
  822. <tbody>
  823. <tr>
  824. <td><span class="xref">NStack.ustring</span></td>
  825. <td>The identifier.</td>
  826. </tr>
  827. </tbody>
  828. </table>
  829. <h5 id="Terminal_Gui_View_Id_remarks">Remarks</h5>
  830. <div class="markdown level1 remarks">The id should be unique across all Views that share a SuperView.</div>
  831. <a id="Terminal_Gui_View_IsCurrentTop_" data-uid="Terminal.Gui.View.IsCurrentTop*"></a>
  832. <h4 id="Terminal_Gui_View_IsCurrentTop" data-uid="Terminal.Gui.View.IsCurrentTop">IsCurrentTop</h4>
  833. <div class="markdown level1 summary">
  834. Returns a value indicating if this View is currently on Top (Active)
  835. </div>
  836. <div class="markdown level1 conceptual"></div>
  837. <h5 class="decalaration">Declaration</h5>
  838. <div class="codewrapper">
  839. <pre><code class="lang-csharp hljs">public bool IsCurrentTop { get; }</code></pre>
  840. </div>
  841. <h5 class="propertyValue">Property Value</h5>
  842. <table class="table table-bordered table-striped table-condensed">
  843. <thead>
  844. <tr>
  845. <th>Type</th>
  846. <th>Description</th>
  847. </tr>
  848. </thead>
  849. <tbody>
  850. <tr>
  851. <td><span class="xref">System.Boolean</span></td>
  852. <td></td>
  853. </tr>
  854. </tbody>
  855. </table>
  856. <a id="Terminal_Gui_View_IsInitialized_" data-uid="Terminal.Gui.View.IsInitialized*"></a>
  857. <h4 id="Terminal_Gui_View_IsInitialized" data-uid="Terminal.Gui.View.IsInitialized">IsInitialized</h4>
  858. <div class="markdown level1 summary">
  859. Get or sets if the <a class="xref" href="Terminal.Gui.View.html">View</a> was already initialized.
  860. This derived from <span class="xref">System.ComponentModel.ISupportInitializeNotification</span> to allow notify all the views that are being initialized.
  861. </div>
  862. <div class="markdown level1 conceptual"></div>
  863. <h5 class="decalaration">Declaration</h5>
  864. <div class="codewrapper">
  865. <pre><code class="lang-csharp hljs">public virtual bool IsInitialized { get; set; }</code></pre>
  866. </div>
  867. <h5 class="propertyValue">Property Value</h5>
  868. <table class="table table-bordered table-striped table-condensed">
  869. <thead>
  870. <tr>
  871. <th>Type</th>
  872. <th>Description</th>
  873. </tr>
  874. </thead>
  875. <tbody>
  876. <tr>
  877. <td><span class="xref">System.Boolean</span></td>
  878. <td></td>
  879. </tr>
  880. </tbody>
  881. </table>
  882. <a id="Terminal_Gui_View_LayoutStyle_" data-uid="Terminal.Gui.View.LayoutStyle*"></a>
  883. <h4 id="Terminal_Gui_View_LayoutStyle" data-uid="Terminal.Gui.View.LayoutStyle">LayoutStyle</h4>
  884. <div class="markdown level1 summary">
  885. Controls how the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> is computed during the LayoutSubviews method, if the style is set to <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>,
  886. LayoutSubviews does not change the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>. If the style is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> is updated using
  887. the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">X</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">Y</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a>, and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> properties.
  888. </div>
  889. <div class="markdown level1 conceptual"></div>
  890. <h5 class="decalaration">Declaration</h5>
  891. <div class="codewrapper">
  892. <pre><code class="lang-csharp hljs">public LayoutStyle LayoutStyle { get; set; }</code></pre>
  893. </div>
  894. <h5 class="propertyValue">Property Value</h5>
  895. <table class="table table-bordered table-striped table-condensed">
  896. <thead>
  897. <tr>
  898. <th>Type</th>
  899. <th>Description</th>
  900. </tr>
  901. </thead>
  902. <tbody>
  903. <tr>
  904. <td><a class="xref" href="Terminal.Gui.LayoutStyle.html">LayoutStyle</a></td>
  905. <td>The layout style.</td>
  906. </tr>
  907. </tbody>
  908. </table>
  909. <a id="Terminal_Gui_View_MostFocused_" data-uid="Terminal.Gui.View.MostFocused*"></a>
  910. <h4 id="Terminal_Gui_View_MostFocused" data-uid="Terminal.Gui.View.MostFocused">MostFocused</h4>
  911. <div class="markdown level1 summary">
  912. Returns the most focused view in the chain of subviews (the leaf view that has the focus).
  913. </div>
  914. <div class="markdown level1 conceptual"></div>
  915. <h5 class="decalaration">Declaration</h5>
  916. <div class="codewrapper">
  917. <pre><code class="lang-csharp hljs">public View MostFocused { get; }</code></pre>
  918. </div>
  919. <h5 class="propertyValue">Property Value</h5>
  920. <table class="table table-bordered table-striped table-condensed">
  921. <thead>
  922. <tr>
  923. <th>Type</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>The most focused.</td>
  931. </tr>
  932. </tbody>
  933. </table>
  934. <a id="Terminal_Gui_View_Shortcut_" data-uid="Terminal.Gui.View.Shortcut*"></a>
  935. <h4 id="Terminal_Gui_View_Shortcut" data-uid="Terminal.Gui.View.Shortcut">Shortcut</h4>
  936. <div class="markdown level1 summary">
  937. This is the global setting that can be used as a global shortcut to invoke an action if provided.
  938. </div>
  939. <div class="markdown level1 conceptual"></div>
  940. <h5 class="decalaration">Declaration</h5>
  941. <div class="codewrapper">
  942. <pre><code class="lang-csharp hljs">public Key Shortcut { get; set; }</code></pre>
  943. </div>
  944. <h5 class="propertyValue">Property Value</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><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  955. <td></td>
  956. </tr>
  957. </tbody>
  958. </table>
  959. <a id="Terminal_Gui_View_ShortcutAction_" data-uid="Terminal.Gui.View.ShortcutAction*"></a>
  960. <h4 id="Terminal_Gui_View_ShortcutAction" data-uid="Terminal.Gui.View.ShortcutAction">ShortcutAction</h4>
  961. <div class="markdown level1 summary">
  962. The action to run if the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">Shortcut</a> is defined.
  963. </div>
  964. <div class="markdown level1 conceptual"></div>
  965. <h5 class="decalaration">Declaration</h5>
  966. <div class="codewrapper">
  967. <pre><code class="lang-csharp hljs">public virtual Action ShortcutAction { get; set; }</code></pre>
  968. </div>
  969. <h5 class="propertyValue">Property Value</h5>
  970. <table class="table table-bordered table-striped table-condensed">
  971. <thead>
  972. <tr>
  973. <th>Type</th>
  974. <th>Description</th>
  975. </tr>
  976. </thead>
  977. <tbody>
  978. <tr>
  979. <td><span class="xref">System.Action</span></td>
  980. <td></td>
  981. </tr>
  982. </tbody>
  983. </table>
  984. <a id="Terminal_Gui_View_ShortcutTag_" data-uid="Terminal.Gui.View.ShortcutTag*"></a>
  985. <h4 id="Terminal_Gui_View_ShortcutTag" data-uid="Terminal.Gui.View.ShortcutTag">ShortcutTag</h4>
  986. <div class="markdown level1 summary">
  987. The keystroke combination used in the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">Shortcut</a> as string.
  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 ustring ShortcutTag { get; }</code></pre>
  993. </div>
  994. <h5 class="propertyValue">Property Value</h5>
  995. <table class="table table-bordered table-striped table-condensed">
  996. <thead>
  997. <tr>
  998. <th>Type</th>
  999. <th>Description</th>
  1000. </tr>
  1001. </thead>
  1002. <tbody>
  1003. <tr>
  1004. <td><span class="xref">NStack.ustring</span></td>
  1005. <td></td>
  1006. </tr>
  1007. </tbody>
  1008. </table>
  1009. <a id="Terminal_Gui_View_Subviews_" data-uid="Terminal.Gui.View.Subviews*"></a>
  1010. <h4 id="Terminal_Gui_View_Subviews" data-uid="Terminal.Gui.View.Subviews">Subviews</h4>
  1011. <div class="markdown level1 summary">
  1012. This returns a list of the subviews contained by this view.
  1013. </div>
  1014. <div class="markdown level1 conceptual"></div>
  1015. <h5 class="decalaration">Declaration</h5>
  1016. <div class="codewrapper">
  1017. <pre><code class="lang-csharp hljs">public IList&lt;View&gt; Subviews { get; }</code></pre>
  1018. </div>
  1019. <h5 class="propertyValue">Property Value</h5>
  1020. <table class="table table-bordered table-striped table-condensed">
  1021. <thead>
  1022. <tr>
  1023. <th>Type</th>
  1024. <th>Description</th>
  1025. </tr>
  1026. </thead>
  1027. <tbody>
  1028. <tr>
  1029. <td><span class="xref">System.Collections.Generic.IList</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  1030. <td>The subviews.</td>
  1031. </tr>
  1032. </tbody>
  1033. </table>
  1034. <a id="Terminal_Gui_View_SuperView_" data-uid="Terminal.Gui.View.SuperView*"></a>
  1035. <h4 id="Terminal_Gui_View_SuperView" data-uid="Terminal.Gui.View.SuperView">SuperView</h4>
  1036. <div class="markdown level1 summary">
  1037. Returns the container for this view, or null if this view has not been added to a container.
  1038. </div>
  1039. <div class="markdown level1 conceptual"></div>
  1040. <h5 class="decalaration">Declaration</h5>
  1041. <div class="codewrapper">
  1042. <pre><code class="lang-csharp hljs">public View SuperView { get; }</code></pre>
  1043. </div>
  1044. <h5 class="propertyValue">Property Value</h5>
  1045. <table class="table table-bordered table-striped table-condensed">
  1046. <thead>
  1047. <tr>
  1048. <th>Type</th>
  1049. <th>Description</th>
  1050. </tr>
  1051. </thead>
  1052. <tbody>
  1053. <tr>
  1054. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1055. <td>The super view.</td>
  1056. </tr>
  1057. </tbody>
  1058. </table>
  1059. <a id="Terminal_Gui_View_TabIndex_" data-uid="Terminal.Gui.View.TabIndex*"></a>
  1060. <h4 id="Terminal_Gui_View_TabIndex" data-uid="Terminal.Gui.View.TabIndex">TabIndex</h4>
  1061. <div class="markdown level1 summary">
  1062. Indicates the index of the current <a class="xref" href="Terminal.Gui.View.html">View</a> from the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">TabIndexes</a> list.
  1063. </div>
  1064. <div class="markdown level1 conceptual"></div>
  1065. <h5 class="decalaration">Declaration</h5>
  1066. <div class="codewrapper">
  1067. <pre><code class="lang-csharp hljs">public int TabIndex { get; set; }</code></pre>
  1068. </div>
  1069. <h5 class="propertyValue">Property Value</h5>
  1070. <table class="table table-bordered table-striped table-condensed">
  1071. <thead>
  1072. <tr>
  1073. <th>Type</th>
  1074. <th>Description</th>
  1075. </tr>
  1076. </thead>
  1077. <tbody>
  1078. <tr>
  1079. <td><span class="xref">System.Int32</span></td>
  1080. <td></td>
  1081. </tr>
  1082. </tbody>
  1083. </table>
  1084. <a id="Terminal_Gui_View_TabIndexes_" data-uid="Terminal.Gui.View.TabIndexes*"></a>
  1085. <h4 id="Terminal_Gui_View_TabIndexes" data-uid="Terminal.Gui.View.TabIndexes">TabIndexes</h4>
  1086. <div class="markdown level1 summary">
  1087. This returns a tab index list of the subviews contained by this view.
  1088. </div>
  1089. <div class="markdown level1 conceptual"></div>
  1090. <h5 class="decalaration">Declaration</h5>
  1091. <div class="codewrapper">
  1092. <pre><code class="lang-csharp hljs">public IList&lt;View&gt; TabIndexes { get; }</code></pre>
  1093. </div>
  1094. <h5 class="propertyValue">Property Value</h5>
  1095. <table class="table table-bordered table-striped table-condensed">
  1096. <thead>
  1097. <tr>
  1098. <th>Type</th>
  1099. <th>Description</th>
  1100. </tr>
  1101. </thead>
  1102. <tbody>
  1103. <tr>
  1104. <td><span class="xref">System.Collections.Generic.IList</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  1105. <td>The tabIndexes.</td>
  1106. </tr>
  1107. </tbody>
  1108. </table>
  1109. <a id="Terminal_Gui_View_TabStop_" data-uid="Terminal.Gui.View.TabStop*"></a>
  1110. <h4 id="Terminal_Gui_View_TabStop" data-uid="Terminal.Gui.View.TabStop">TabStop</h4>
  1111. <div class="markdown level1 summary">
  1112. This only be <code>true</code> if the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">CanFocus</a> is also <code>true</code> and the focus can be avoided by setting this to <code>false</code>
  1113. </div>
  1114. <div class="markdown level1 conceptual"></div>
  1115. <h5 class="decalaration">Declaration</h5>
  1116. <div class="codewrapper">
  1117. <pre><code class="lang-csharp hljs">public bool TabStop { get; set; }</code></pre>
  1118. </div>
  1119. <h5 class="propertyValue">Property Value</h5>
  1120. <table class="table table-bordered table-striped table-condensed">
  1121. <thead>
  1122. <tr>
  1123. <th>Type</th>
  1124. <th>Description</th>
  1125. </tr>
  1126. </thead>
  1127. <tbody>
  1128. <tr>
  1129. <td><span class="xref">System.Boolean</span></td>
  1130. <td></td>
  1131. </tr>
  1132. </tbody>
  1133. </table>
  1134. <a id="Terminal_Gui_View_Text_" data-uid="Terminal.Gui.View.Text*"></a>
  1135. <h4 id="Terminal_Gui_View_Text" data-uid="Terminal.Gui.View.Text">Text</h4>
  1136. <div class="markdown level1 summary">
  1137. The text displayed by the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  1138. </div>
  1139. <div class="markdown level1 conceptual"></div>
  1140. <h5 class="decalaration">Declaration</h5>
  1141. <div class="codewrapper">
  1142. <pre><code class="lang-csharp hljs">public virtual ustring Text { get; set; }</code></pre>
  1143. </div>
  1144. <h5 class="propertyValue">Property Value</h5>
  1145. <table class="table table-bordered table-striped table-condensed">
  1146. <thead>
  1147. <tr>
  1148. <th>Type</th>
  1149. <th>Description</th>
  1150. </tr>
  1151. </thead>
  1152. <tbody>
  1153. <tr>
  1154. <td><span class="xref">NStack.ustring</span></td>
  1155. <td></td>
  1156. </tr>
  1157. </tbody>
  1158. </table>
  1159. <h5 id="Terminal_Gui_View_Text_remarks">Remarks</h5>
  1160. <div class="markdown level1 remarks">
  1161. <p>
  1162. If provided, the text will be drawn before any subviews are drawn.
  1163. </p>
  1164. <p>
  1165. The text will be drawn starting at the view origin (0, 0) and will be formatted according
  1166. to the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">TextAlignment</a> property. If the view&apos;s height is greater than 1, the
  1167. text will word-wrap to additional lines if it does not fit horizontally. If the view&apos;s height
  1168. is 1, the text will be clipped.
  1169. </p>
  1170. <p>
  1171. Set the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">HotKeySpecifier</a> to enable hotkey support. To disable hotkey support set <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">HotKeySpecifier</a> to
  1172. <code>(Rune)0xffff</code>.
  1173. </p>
  1174. </div>
  1175. <a id="Terminal_Gui_View_TextAlignment_" data-uid="Terminal.Gui.View.TextAlignment*"></a>
  1176. <h4 id="Terminal_Gui_View_TextAlignment" data-uid="Terminal.Gui.View.TextAlignment">TextAlignment</h4>
  1177. <div class="markdown level1 summary">
  1178. Gets or sets how the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> is aligned horizontally when drawn. Changing this property will redisplay the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  1179. </div>
  1180. <div class="markdown level1 conceptual"></div>
  1181. <h5 class="decalaration">Declaration</h5>
  1182. <div class="codewrapper">
  1183. <pre><code class="lang-csharp hljs">public virtual TextAlignment TextAlignment { get; set; }</code></pre>
  1184. </div>
  1185. <h5 class="propertyValue">Property Value</h5>
  1186. <table class="table table-bordered table-striped table-condensed">
  1187. <thead>
  1188. <tr>
  1189. <th>Type</th>
  1190. <th>Description</th>
  1191. </tr>
  1192. </thead>
  1193. <tbody>
  1194. <tr>
  1195. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  1196. <td>The text alignment.</td>
  1197. </tr>
  1198. </tbody>
  1199. </table>
  1200. <a id="Terminal_Gui_View_TextDirection_" data-uid="Terminal.Gui.View.TextDirection*"></a>
  1201. <h4 id="Terminal_Gui_View_TextDirection" data-uid="Terminal.Gui.View.TextDirection">TextDirection</h4>
  1202. <div class="markdown level1 summary">
  1203. Gets or sets the direction of the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a>. Changing this property will redisplay the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  1204. </div>
  1205. <div class="markdown level1 conceptual"></div>
  1206. <h5 class="decalaration">Declaration</h5>
  1207. <div class="codewrapper">
  1208. <pre><code class="lang-csharp hljs">public virtual TextDirection TextDirection { get; set; }</code></pre>
  1209. </div>
  1210. <h5 class="propertyValue">Property Value</h5>
  1211. <table class="table table-bordered table-striped table-condensed">
  1212. <thead>
  1213. <tr>
  1214. <th>Type</th>
  1215. <th>Description</th>
  1216. </tr>
  1217. </thead>
  1218. <tbody>
  1219. <tr>
  1220. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  1221. <td>The text alignment.</td>
  1222. </tr>
  1223. </tbody>
  1224. </table>
  1225. <a id="Terminal_Gui_View_VerticalTextAlignment_" data-uid="Terminal.Gui.View.VerticalTextAlignment*"></a>
  1226. <h4 id="Terminal_Gui_View_VerticalTextAlignment" data-uid="Terminal.Gui.View.VerticalTextAlignment">VerticalTextAlignment</h4>
  1227. <div class="markdown level1 summary">
  1228. Gets or sets how the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">Text</a> is aligned verticaly when drawn. Changing this property will redisplay the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  1229. </div>
  1230. <div class="markdown level1 conceptual"></div>
  1231. <h5 class="decalaration">Declaration</h5>
  1232. <div class="codewrapper">
  1233. <pre><code class="lang-csharp hljs">public virtual VerticalTextAlignment VerticalTextAlignment { get; set; }</code></pre>
  1234. </div>
  1235. <h5 class="propertyValue">Property Value</h5>
  1236. <table class="table table-bordered table-striped table-condensed">
  1237. <thead>
  1238. <tr>
  1239. <th>Type</th>
  1240. <th>Description</th>
  1241. </tr>
  1242. </thead>
  1243. <tbody>
  1244. <tr>
  1245. <td><a class="xref" href="Terminal.Gui.VerticalTextAlignment.html">VerticalTextAlignment</a></td>
  1246. <td>The text alignment.</td>
  1247. </tr>
  1248. </tbody>
  1249. </table>
  1250. <a id="Terminal_Gui_View_Visible_" data-uid="Terminal.Gui.View.Visible*"></a>
  1251. <h4 id="Terminal_Gui_View_Visible" data-uid="Terminal.Gui.View.Visible">Visible</h4>
  1252. <div class="markdown level1 summary"></div>
  1253. <div class="markdown level1 conceptual"></div>
  1254. <h5 class="decalaration">Declaration</h5>
  1255. <div class="codewrapper">
  1256. <pre><code class="lang-csharp hljs">public override bool Visible { get; set; }</code></pre>
  1257. </div>
  1258. <h5 class="propertyValue">Property Value</h5>
  1259. <table class="table table-bordered table-striped table-condensed">
  1260. <thead>
  1261. <tr>
  1262. <th>Type</th>
  1263. <th>Description</th>
  1264. </tr>
  1265. </thead>
  1266. <tbody>
  1267. <tr>
  1268. <td><span class="xref">System.Boolean</span></td>
  1269. <td></td>
  1270. </tr>
  1271. </tbody>
  1272. </table>
  1273. <h5 class="overrides">Overrides</h5>
  1274. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Visible">Responder.Visible</a></div>
  1275. <a id="Terminal_Gui_View_WantContinuousButtonPressed_" data-uid="Terminal.Gui.View.WantContinuousButtonPressed*"></a>
  1276. <h4 id="Terminal_Gui_View_WantContinuousButtonPressed" data-uid="Terminal.Gui.View.WantContinuousButtonPressed">WantContinuousButtonPressed</h4>
  1277. <div class="markdown level1 summary">
  1278. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> want continuous button pressed event.
  1279. </div>
  1280. <div class="markdown level1 conceptual"></div>
  1281. <h5 class="decalaration">Declaration</h5>
  1282. <div class="codewrapper">
  1283. <pre><code class="lang-csharp hljs">public virtual bool WantContinuousButtonPressed { get; set; }</code></pre>
  1284. </div>
  1285. <h5 class="propertyValue">Property Value</h5>
  1286. <table class="table table-bordered table-striped table-condensed">
  1287. <thead>
  1288. <tr>
  1289. <th>Type</th>
  1290. <th>Description</th>
  1291. </tr>
  1292. </thead>
  1293. <tbody>
  1294. <tr>
  1295. <td><span class="xref">System.Boolean</span></td>
  1296. <td></td>
  1297. </tr>
  1298. </tbody>
  1299. </table>
  1300. <a id="Terminal_Gui_View_WantMousePositionReports_" data-uid="Terminal.Gui.View.WantMousePositionReports*"></a>
  1301. <h4 id="Terminal_Gui_View_WantMousePositionReports" data-uid="Terminal.Gui.View.WantMousePositionReports">WantMousePositionReports</h4>
  1302. <div class="markdown level1 summary">
  1303. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> wants mouse position reports.
  1304. </div>
  1305. <div class="markdown level1 conceptual"></div>
  1306. <h5 class="decalaration">Declaration</h5>
  1307. <div class="codewrapper">
  1308. <pre><code class="lang-csharp hljs">public virtual bool WantMousePositionReports { get; set; }</code></pre>
  1309. </div>
  1310. <h5 class="propertyValue">Property Value</h5>
  1311. <table class="table table-bordered table-striped table-condensed">
  1312. <thead>
  1313. <tr>
  1314. <th>Type</th>
  1315. <th>Description</th>
  1316. </tr>
  1317. </thead>
  1318. <tbody>
  1319. <tr>
  1320. <td><span class="xref">System.Boolean</span></td>
  1321. <td><code>true</code> if want mouse position reports; otherwise, <code>false</code>.</td>
  1322. </tr>
  1323. </tbody>
  1324. </table>
  1325. <a id="Terminal_Gui_View_Width_" data-uid="Terminal.Gui.View.Width*"></a>
  1326. <h4 id="Terminal_Gui_View_Width" data-uid="Terminal.Gui.View.Width">Width</h4>
  1327. <div class="markdown level1 summary">
  1328. Gets or sets the width of the view. Only used the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  1329. </div>
  1330. <div class="markdown level1 conceptual"></div>
  1331. <h5 class="decalaration">Declaration</h5>
  1332. <div class="codewrapper">
  1333. <pre><code class="lang-csharp hljs">public Dim Width { get; set; }</code></pre>
  1334. </div>
  1335. <h5 class="propertyValue">Property Value</h5>
  1336. <table class="table table-bordered table-striped table-condensed">
  1337. <thead>
  1338. <tr>
  1339. <th>Type</th>
  1340. <th>Description</th>
  1341. </tr>
  1342. </thead>
  1343. <tbody>
  1344. <tr>
  1345. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  1346. <td>The width.</td>
  1347. </tr>
  1348. </tbody>
  1349. </table>
  1350. <h5 id="Terminal_Gui_View_Width_remarks">Remarks</h5>
  1351. <div class="markdown level1 remarks">
  1352. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  1353. </div>
  1354. <a id="Terminal_Gui_View_X_" data-uid="Terminal.Gui.View.X*"></a>
  1355. <h4 id="Terminal_Gui_View_X" data-uid="Terminal.Gui.View.X">X</h4>
  1356. <div class="markdown level1 summary">
  1357. Gets or sets the X position for the view (the column). Only used the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  1358. </div>
  1359. <div class="markdown level1 conceptual"></div>
  1360. <h5 class="decalaration">Declaration</h5>
  1361. <div class="codewrapper">
  1362. <pre><code class="lang-csharp hljs">public Pos X { get; set; }</code></pre>
  1363. </div>
  1364. <h5 class="propertyValue">Property Value</h5>
  1365. <table class="table table-bordered table-striped table-condensed">
  1366. <thead>
  1367. <tr>
  1368. <th>Type</th>
  1369. <th>Description</th>
  1370. </tr>
  1371. </thead>
  1372. <tbody>
  1373. <tr>
  1374. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  1375. <td>The X Position.</td>
  1376. </tr>
  1377. </tbody>
  1378. </table>
  1379. <h5 id="Terminal_Gui_View_X_remarks">Remarks</h5>
  1380. <div class="markdown level1 remarks">
  1381. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  1382. </div>
  1383. <a id="Terminal_Gui_View_Y_" data-uid="Terminal.Gui.View.Y*"></a>
  1384. <h4 id="Terminal_Gui_View_Y" data-uid="Terminal.Gui.View.Y">Y</h4>
  1385. <div class="markdown level1 summary">
  1386. Gets or sets the Y position for the view (the row). Only used the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  1387. </div>
  1388. <div class="markdown level1 conceptual"></div>
  1389. <h5 class="decalaration">Declaration</h5>
  1390. <div class="codewrapper">
  1391. <pre><code class="lang-csharp hljs">public Pos Y { get; set; }</code></pre>
  1392. </div>
  1393. <h5 class="propertyValue">Property Value</h5>
  1394. <table class="table table-bordered table-striped table-condensed">
  1395. <thead>
  1396. <tr>
  1397. <th>Type</th>
  1398. <th>Description</th>
  1399. </tr>
  1400. </thead>
  1401. <tbody>
  1402. <tr>
  1403. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  1404. <td>The y position (line).</td>
  1405. </tr>
  1406. </tbody>
  1407. </table>
  1408. <h5 id="Terminal_Gui_View_Y_remarks">Remarks</h5>
  1409. <div class="markdown level1 remarks">
  1410. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  1411. </div>
  1412. <h3 id="methods">Methods
  1413. </h3>
  1414. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  1415. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View)">Add(View)</h4>
  1416. <div class="markdown level1 summary">
  1417. Adds a subview (child) to this view.
  1418. </div>
  1419. <div class="markdown level1 conceptual"></div>
  1420. <h5 class="decalaration">Declaration</h5>
  1421. <div class="codewrapper">
  1422. <pre><code class="lang-csharp hljs">public virtual void Add(View view)</code></pre>
  1423. </div>
  1424. <h5 class="parameters">Parameters</h5>
  1425. <table class="table table-bordered table-striped table-condensed">
  1426. <thead>
  1427. <tr>
  1428. <th>Type</th>
  1429. <th>Name</th>
  1430. <th>Description</th>
  1431. </tr>
  1432. </thead>
  1433. <tbody>
  1434. <tr>
  1435. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1436. <td><span class="parametername">view</span></td>
  1437. <td></td>
  1438. </tr>
  1439. </tbody>
  1440. </table>
  1441. <h5 id="Terminal_Gui_View_Add_Terminal_Gui_View__remarks">Remarks</h5>
  1442. <div class="markdown level1 remarks">
  1443. The Views that have been added to this view can be retrieved via the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> property. See also <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">RemoveAll()</a>
  1444. </div>
  1445. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  1446. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View___" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View[])">Add(View[])</h4>
  1447. <div class="markdown level1 summary">
  1448. Adds the specified views (children) to the view.
  1449. </div>
  1450. <div class="markdown level1 conceptual"></div>
  1451. <h5 class="decalaration">Declaration</h5>
  1452. <div class="codewrapper">
  1453. <pre><code class="lang-csharp hljs">public void Add(params View[] views)</code></pre>
  1454. </div>
  1455. <h5 class="parameters">Parameters</h5>
  1456. <table class="table table-bordered table-striped table-condensed">
  1457. <thead>
  1458. <tr>
  1459. <th>Type</th>
  1460. <th>Name</th>
  1461. <th>Description</th>
  1462. </tr>
  1463. </thead>
  1464. <tbody>
  1465. <tr>
  1466. <td><a class="xref" href="Terminal.Gui.View.html">View</a>[]</td>
  1467. <td><span class="parametername">views</span></td>
  1468. <td>Array of one or more views (can be optional parameter).</td>
  1469. </tr>
  1470. </tbody>
  1471. </table>
  1472. <h5 id="Terminal_Gui_View_Add_Terminal_Gui_View____remarks">Remarks</h5>
  1473. <div class="markdown level1 remarks">
  1474. The Views that have been added to this view can be retrieved via the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> property. See also <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">RemoveAll()</a>
  1475. </div>
  1476. <a id="Terminal_Gui_View_AddCommand_" data-uid="Terminal.Gui.View.AddCommand*"></a>
  1477. <h4 id="Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___" data-uid="Terminal.Gui.View.AddCommand(Terminal.Gui.Command,System.Func{System.Nullable{System.Boolean}})">AddCommand(Command, Func&lt;Nullable&lt;Boolean&gt;&gt;)</h4>
  1478. <div class="markdown level1 summary">
  1479. <p>States that the given <a class="xref" href="Terminal.Gui.View.html">View</a> supports a given <code data-dev-comment-type="paramref" class="paramref">command</code>
  1480. and what <code data-dev-comment-type="paramref" class="paramref">f</code> to perform to make that command happen
  1481. </p>
  1482. <p>If the <code data-dev-comment-type="paramref" class="paramref">command</code> already has an implementation the <code data-dev-comment-type="paramref" class="paramref">f</code>
  1483. will replace the old one</p>
  1484. </div>
  1485. <div class="markdown level1 conceptual"></div>
  1486. <h5 class="decalaration">Declaration</h5>
  1487. <div class="codewrapper">
  1488. <pre><code class="lang-csharp hljs">protected void AddCommand(Command command, Func&lt;bool?&gt; f)</code></pre>
  1489. </div>
  1490. <h5 class="parameters">Parameters</h5>
  1491. <table class="table table-bordered table-striped table-condensed">
  1492. <thead>
  1493. <tr>
  1494. <th>Type</th>
  1495. <th>Name</th>
  1496. <th>Description</th>
  1497. </tr>
  1498. </thead>
  1499. <tbody>
  1500. <tr>
  1501. <td><a class="xref" href="Terminal.Gui.Command.html">Command</a></td>
  1502. <td><span class="parametername">command</span></td>
  1503. <td>The command.</td>
  1504. </tr>
  1505. <tr>
  1506. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Nullable</span>&lt;<span class="xref">System.Boolean</span>&gt;&gt;</td>
  1507. <td><span class="parametername">f</span></td>
  1508. <td>The function.</td>
  1509. </tr>
  1510. </tbody>
  1511. </table>
  1512. <a id="Terminal_Gui_View_AddKeyBinding_" data-uid="Terminal.Gui.View.AddKeyBinding*"></a>
  1513. <h4 id="Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_" data-uid="Terminal.Gui.View.AddKeyBinding(Terminal.Gui.Key,Terminal.Gui.Command)">AddKeyBinding(Key, Command)</h4>
  1514. <div class="markdown level1 summary">
  1515. <p>Adds a new key combination that will trigger the given <code data-dev-comment-type="paramref" class="paramref">command</code>
  1516. (if supported by the View - see <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">GetSupportedCommands()</a>)
  1517. </p>
  1518. <p>If the key is already bound to a different <a class="xref" href="Terminal.Gui.Command.html">Command</a> it will be
  1519. rebound to this one</p>
  1520. </div>
  1521. <div class="markdown level1 conceptual"></div>
  1522. <h5 class="decalaration">Declaration</h5>
  1523. <div class="codewrapper">
  1524. <pre><code class="lang-csharp hljs">public void AddKeyBinding(Key key, Command command)</code></pre>
  1525. </div>
  1526. <h5 class="parameters">Parameters</h5>
  1527. <table class="table table-bordered table-striped table-condensed">
  1528. <thead>
  1529. <tr>
  1530. <th>Type</th>
  1531. <th>Name</th>
  1532. <th>Description</th>
  1533. </tr>
  1534. </thead>
  1535. <tbody>
  1536. <tr>
  1537. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  1538. <td><span class="parametername">key</span></td>
  1539. <td></td>
  1540. </tr>
  1541. <tr>
  1542. <td><a class="xref" href="Terminal.Gui.Command.html">Command</a></td>
  1543. <td><span class="parametername">command</span></td>
  1544. <td></td>
  1545. </tr>
  1546. </tbody>
  1547. </table>
  1548. <a id="Terminal_Gui_View_AddRune_" data-uid="Terminal.Gui.View.AddRune*"></a>
  1549. <h4 id="Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_" data-uid="Terminal.Gui.View.AddRune(System.Int32,System.Int32,System.Rune)">AddRune(Int32, Int32, Rune)</h4>
  1550. <div class="markdown level1 summary">
  1551. Displays the specified character in the specified column and row of the View.
  1552. </div>
  1553. <div class="markdown level1 conceptual"></div>
  1554. <h5 class="decalaration">Declaration</h5>
  1555. <div class="codewrapper">
  1556. <pre><code class="lang-csharp hljs">public void AddRune(int col, int row, Rune ch)</code></pre>
  1557. </div>
  1558. <h5 class="parameters">Parameters</h5>
  1559. <table class="table table-bordered table-striped table-condensed">
  1560. <thead>
  1561. <tr>
  1562. <th>Type</th>
  1563. <th>Name</th>
  1564. <th>Description</th>
  1565. </tr>
  1566. </thead>
  1567. <tbody>
  1568. <tr>
  1569. <td><span class="xref">System.Int32</span></td>
  1570. <td><span class="parametername">col</span></td>
  1571. <td>Column (view-relative).</td>
  1572. </tr>
  1573. <tr>
  1574. <td><span class="xref">System.Int32</span></td>
  1575. <td><span class="parametername">row</span></td>
  1576. <td>Row (view-relative).</td>
  1577. </tr>
  1578. <tr>
  1579. <td><span class="xref">System.Rune</span></td>
  1580. <td><span class="parametername">ch</span></td>
  1581. <td>Ch.</td>
  1582. </tr>
  1583. </tbody>
  1584. </table>
  1585. <a id="Terminal_Gui_View_BeginInit_" data-uid="Terminal.Gui.View.BeginInit*"></a>
  1586. <h4 id="Terminal_Gui_View_BeginInit" data-uid="Terminal.Gui.View.BeginInit">BeginInit()</h4>
  1587. <div class="markdown level1 summary">
  1588. This derived from <span class="xref">System.ComponentModel.ISupportInitializeNotification</span> to allow notify all the views that are beginning initialized.
  1589. </div>
  1590. <div class="markdown level1 conceptual"></div>
  1591. <h5 class="decalaration">Declaration</h5>
  1592. <div class="codewrapper">
  1593. <pre><code class="lang-csharp hljs">public void BeginInit()</code></pre>
  1594. </div>
  1595. <a id="Terminal_Gui_View_BringSubviewForward_" data-uid="Terminal.Gui.View.BringSubviewForward*"></a>
  1596. <h4 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewForward(Terminal.Gui.View)">BringSubviewForward(View)</h4>
  1597. <div class="markdown level1 summary">
  1598. Moves the subview backwards in the hierarchy, only one step
  1599. </div>
  1600. <div class="markdown level1 conceptual"></div>
  1601. <h5 class="decalaration">Declaration</h5>
  1602. <div class="codewrapper">
  1603. <pre><code class="lang-csharp hljs">public void BringSubviewForward(View subview)</code></pre>
  1604. </div>
  1605. <h5 class="parameters">Parameters</h5>
  1606. <table class="table table-bordered table-striped table-condensed">
  1607. <thead>
  1608. <tr>
  1609. <th>Type</th>
  1610. <th>Name</th>
  1611. <th>Description</th>
  1612. </tr>
  1613. </thead>
  1614. <tbody>
  1615. <tr>
  1616. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1617. <td><span class="parametername">subview</span></td>
  1618. <td>The subview to send backwards</td>
  1619. </tr>
  1620. </tbody>
  1621. </table>
  1622. <h5 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View__remarks">Remarks</h5>
  1623. <div class="markdown level1 remarks">
  1624. If you want to send the view all the way to the back use SendSubviewToBack.
  1625. </div>
  1626. <a id="Terminal_Gui_View_BringSubviewToFront_" data-uid="Terminal.Gui.View.BringSubviewToFront*"></a>
  1627. <h4 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewToFront(Terminal.Gui.View)">BringSubviewToFront(View)</h4>
  1628. <div class="markdown level1 summary">
  1629. Brings the specified subview to the front so it is drawn on top of any other views.
  1630. </div>
  1631. <div class="markdown level1 conceptual"></div>
  1632. <h5 class="decalaration">Declaration</h5>
  1633. <div class="codewrapper">
  1634. <pre><code class="lang-csharp hljs">public void BringSubviewToFront(View subview)</code></pre>
  1635. </div>
  1636. <h5 class="parameters">Parameters</h5>
  1637. <table class="table table-bordered table-striped table-condensed">
  1638. <thead>
  1639. <tr>
  1640. <th>Type</th>
  1641. <th>Name</th>
  1642. <th>Description</th>
  1643. </tr>
  1644. </thead>
  1645. <tbody>
  1646. <tr>
  1647. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1648. <td><span class="parametername">subview</span></td>
  1649. <td>The subview to send to the front</td>
  1650. </tr>
  1651. </tbody>
  1652. </table>
  1653. <h5 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View__remarks">Remarks</h5>
  1654. <div class="markdown level1 remarks">
  1655. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">SendSubviewToBack(View)</a>.
  1656. </div>
  1657. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  1658. <h4 id="Terminal_Gui_View_Clear" data-uid="Terminal.Gui.View.Clear">Clear()</h4>
  1659. <div class="markdown level1 summary">
  1660. Clears the view region with the current color.
  1661. </div>
  1662. <div class="markdown level1 conceptual"></div>
  1663. <h5 class="decalaration">Declaration</h5>
  1664. <div class="codewrapper">
  1665. <pre><code class="lang-csharp hljs">public void Clear()</code></pre>
  1666. </div>
  1667. <h5 id="Terminal_Gui_View_Clear_remarks">Remarks</h5>
  1668. <div class="markdown level1 remarks">
  1669. <p>
  1670. This clears the entire region used by this view.
  1671. </p>
  1672. </div>
  1673. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  1674. <h4 id="Terminal_Gui_View_Clear_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Clear(Terminal.Gui.Rect)">Clear(Rect)</h4>
  1675. <div class="markdown level1 summary">
  1676. Clears the specified region with the current color.
  1677. </div>
  1678. <div class="markdown level1 conceptual"></div>
  1679. <h5 class="decalaration">Declaration</h5>
  1680. <div class="codewrapper">
  1681. <pre><code class="lang-csharp hljs">public void Clear(Rect regionScreen)</code></pre>
  1682. </div>
  1683. <h5 class="parameters">Parameters</h5>
  1684. <table class="table table-bordered table-striped table-condensed">
  1685. <thead>
  1686. <tr>
  1687. <th>Type</th>
  1688. <th>Name</th>
  1689. <th>Description</th>
  1690. </tr>
  1691. </thead>
  1692. <tbody>
  1693. <tr>
  1694. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1695. <td><span class="parametername">regionScreen</span></td>
  1696. <td>The screen-relative region to clear.</td>
  1697. </tr>
  1698. </tbody>
  1699. </table>
  1700. <h5 id="Terminal_Gui_View_Clear_Terminal_Gui_Rect__remarks">Remarks</h5>
  1701. <div class="markdown level1 remarks">
  1702. </div>
  1703. <a id="Terminal_Gui_View_ClearKeybinding_" data-uid="Terminal.Gui.View.ClearKeybinding*"></a>
  1704. <h4 id="Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_" data-uid="Terminal.Gui.View.ClearKeybinding(Terminal.Gui.Command)">ClearKeybinding(Command)</h4>
  1705. <div class="markdown level1 summary">
  1706. Removes all key bindings that trigger the given command. Views can have multiple different
  1707. keys bound to the same command and this method will clear all of them.
  1708. </div>
  1709. <div class="markdown level1 conceptual"></div>
  1710. <h5 class="decalaration">Declaration</h5>
  1711. <div class="codewrapper">
  1712. <pre><code class="lang-csharp hljs">public void ClearKeybinding(Command command)</code></pre>
  1713. </div>
  1714. <h5 class="parameters">Parameters</h5>
  1715. <table class="table table-bordered table-striped table-condensed">
  1716. <thead>
  1717. <tr>
  1718. <th>Type</th>
  1719. <th>Name</th>
  1720. <th>Description</th>
  1721. </tr>
  1722. </thead>
  1723. <tbody>
  1724. <tr>
  1725. <td><a class="xref" href="Terminal.Gui.Command.html">Command</a></td>
  1726. <td><span class="parametername">command</span></td>
  1727. <td></td>
  1728. </tr>
  1729. </tbody>
  1730. </table>
  1731. <a id="Terminal_Gui_View_ClearKeybinding_" data-uid="Terminal.Gui.View.ClearKeybinding*"></a>
  1732. <h4 id="Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_" data-uid="Terminal.Gui.View.ClearKeybinding(Terminal.Gui.Key)">ClearKeybinding(Key)</h4>
  1733. <div class="markdown level1 summary">
  1734. Clears the existing keybinding (if any) for the given <code data-dev-comment-type="paramref" class="paramref">key</code>
  1735. </div>
  1736. <div class="markdown level1 conceptual"></div>
  1737. <h5 class="decalaration">Declaration</h5>
  1738. <div class="codewrapper">
  1739. <pre><code class="lang-csharp hljs">public void ClearKeybinding(Key key)</code></pre>
  1740. </div>
  1741. <h5 class="parameters">Parameters</h5>
  1742. <table class="table table-bordered table-striped table-condensed">
  1743. <thead>
  1744. <tr>
  1745. <th>Type</th>
  1746. <th>Name</th>
  1747. <th>Description</th>
  1748. </tr>
  1749. </thead>
  1750. <tbody>
  1751. <tr>
  1752. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  1753. <td><span class="parametername">key</span></td>
  1754. <td></td>
  1755. </tr>
  1756. </tbody>
  1757. </table>
  1758. <a id="Terminal_Gui_View_ClearKeybindings_" data-uid="Terminal.Gui.View.ClearKeybindings*"></a>
  1759. <h4 id="Terminal_Gui_View_ClearKeybindings" data-uid="Terminal.Gui.View.ClearKeybindings">ClearKeybindings()</h4>
  1760. <div class="markdown level1 summary">
  1761. Removes all bound keys from the View making including the default
  1762. key combinations such as cursor navigation, scrolling etc
  1763. </div>
  1764. <div class="markdown level1 conceptual"></div>
  1765. <h5 class="decalaration">Declaration</h5>
  1766. <div class="codewrapper">
  1767. <pre><code class="lang-csharp hljs">public void ClearKeybindings()</code></pre>
  1768. </div>
  1769. <a id="Terminal_Gui_View_ClearLayoutNeeded_" data-uid="Terminal.Gui.View.ClearLayoutNeeded*"></a>
  1770. <h4 id="Terminal_Gui_View_ClearLayoutNeeded" data-uid="Terminal.Gui.View.ClearLayoutNeeded">ClearLayoutNeeded()</h4>
  1771. <div class="markdown level1 summary">
  1772. Removes the <span class="xref">Terminal.Gui.View.SetNeedsLayout</span> setting on this view.
  1773. </div>
  1774. <div class="markdown level1 conceptual"></div>
  1775. <h5 class="decalaration">Declaration</h5>
  1776. <div class="codewrapper">
  1777. <pre><code class="lang-csharp hljs">protected void ClearLayoutNeeded()</code></pre>
  1778. </div>
  1779. <a id="Terminal_Gui_View_ClearNeedsDisplay_" data-uid="Terminal.Gui.View.ClearNeedsDisplay*"></a>
  1780. <h4 id="Terminal_Gui_View_ClearNeedsDisplay" data-uid="Terminal.Gui.View.ClearNeedsDisplay">ClearNeedsDisplay()</h4>
  1781. <div class="markdown level1 summary">
  1782. Removes the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a> and the <span class="xref">Terminal.Gui.View.ChildNeedsDisplay</span> setting on this view.
  1783. </div>
  1784. <div class="markdown level1 conceptual"></div>
  1785. <h5 class="decalaration">Declaration</h5>
  1786. <div class="codewrapper">
  1787. <pre><code class="lang-csharp hljs">protected void ClearNeedsDisplay()</code></pre>
  1788. </div>
  1789. <a id="Terminal_Gui_View_ClipToBounds_" data-uid="Terminal.Gui.View.ClipToBounds*"></a>
  1790. <h4 id="Terminal_Gui_View_ClipToBounds" data-uid="Terminal.Gui.View.ClipToBounds">ClipToBounds()</h4>
  1791. <div class="markdown level1 summary">
  1792. Sets the <a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a>&apos;s clip region to the current View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a>.
  1793. </div>
  1794. <div class="markdown level1 conceptual"></div>
  1795. <h5 class="decalaration">Declaration</h5>
  1796. <div class="codewrapper">
  1797. <pre><code class="lang-csharp hljs">public Rect ClipToBounds()</code></pre>
  1798. </div>
  1799. <h5 class="returns">Returns</h5>
  1800. <table class="table table-bordered table-striped table-condensed">
  1801. <thead>
  1802. <tr>
  1803. <th>Type</th>
  1804. <th>Description</th>
  1805. </tr>
  1806. </thead>
  1807. <tbody>
  1808. <tr>
  1809. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1810. <td>The existing driver&apos;s clip region, which can be then re-applied by setting <code><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a>.Clip</code> (<a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_Clip">Clip</a>).</td>
  1811. </tr>
  1812. </tbody>
  1813. </table>
  1814. <h5 id="Terminal_Gui_View_ClipToBounds_remarks">Remarks</h5>
  1815. <div class="markdown level1 remarks">
  1816. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> is View-relative.
  1817. </div>
  1818. <a id="Terminal_Gui_View_ContainsKeyBinding_" data-uid="Terminal.Gui.View.ContainsKeyBinding*"></a>
  1819. <h4 id="Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_" data-uid="Terminal.Gui.View.ContainsKeyBinding(Terminal.Gui.Key)">ContainsKeyBinding(Key)</h4>
  1820. <div class="markdown level1 summary">
  1821. Checks if key combination already exist.
  1822. </div>
  1823. <div class="markdown level1 conceptual"></div>
  1824. <h5 class="decalaration">Declaration</h5>
  1825. <div class="codewrapper">
  1826. <pre><code class="lang-csharp hljs">public bool ContainsKeyBinding(Key key)</code></pre>
  1827. </div>
  1828. <h5 class="parameters">Parameters</h5>
  1829. <table class="table table-bordered table-striped table-condensed">
  1830. <thead>
  1831. <tr>
  1832. <th>Type</th>
  1833. <th>Name</th>
  1834. <th>Description</th>
  1835. </tr>
  1836. </thead>
  1837. <tbody>
  1838. <tr>
  1839. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  1840. <td><span class="parametername">key</span></td>
  1841. <td>The key to check.</td>
  1842. </tr>
  1843. </tbody>
  1844. </table>
  1845. <h5 class="returns">Returns</h5>
  1846. <table class="table table-bordered table-striped table-condensed">
  1847. <thead>
  1848. <tr>
  1849. <th>Type</th>
  1850. <th>Description</th>
  1851. </tr>
  1852. </thead>
  1853. <tbody>
  1854. <tr>
  1855. <td><span class="xref">System.Boolean</span></td>
  1856. <td><code>true</code> If the key already exist, <code>false</code>otherwise.</td>
  1857. </tr>
  1858. </tbody>
  1859. </table>
  1860. <a id="Terminal_Gui_View_Dispose_" data-uid="Terminal.Gui.View.Dispose*"></a>
  1861. <h4 id="Terminal_Gui_View_Dispose_System_Boolean_" data-uid="Terminal.Gui.View.Dispose(System.Boolean)">Dispose(Boolean)</h4>
  1862. <div class="markdown level1 summary"></div>
  1863. <div class="markdown level1 conceptual"></div>
  1864. <h5 class="decalaration">Declaration</h5>
  1865. <div class="codewrapper">
  1866. <pre><code class="lang-csharp hljs">protected override void Dispose(bool disposing)</code></pre>
  1867. </div>
  1868. <h5 class="parameters">Parameters</h5>
  1869. <table class="table table-bordered table-striped table-condensed">
  1870. <thead>
  1871. <tr>
  1872. <th>Type</th>
  1873. <th>Name</th>
  1874. <th>Description</th>
  1875. </tr>
  1876. </thead>
  1877. <tbody>
  1878. <tr>
  1879. <td><span class="xref">System.Boolean</span></td>
  1880. <td><span class="parametername">disposing</span></td>
  1881. <td></td>
  1882. </tr>
  1883. </tbody>
  1884. </table>
  1885. <h5 class="overrides">Overrides</h5>
  1886. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose_System_Boolean_">Responder.Dispose(Boolean)</a></div>
  1887. <a id="Terminal_Gui_View_DrawFrame_" data-uid="Terminal.Gui.View.DrawFrame*"></a>
  1888. <h4 id="Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_" data-uid="Terminal.Gui.View.DrawFrame(Terminal.Gui.Rect,System.Int32,System.Boolean)">DrawFrame(Rect, Int32, Boolean)</h4>
  1889. <div class="markdown level1 summary">
  1890. Draws a frame in the current view, clipped by the boundary of this view
  1891. </div>
  1892. <div class="markdown level1 conceptual"></div>
  1893. <h5 class="decalaration">Declaration</h5>
  1894. <div class="codewrapper">
  1895. <pre><code class="lang-csharp hljs">public void DrawFrame(Rect region, int padding = 0, bool fill = false)</code></pre>
  1896. </div>
  1897. <h5 class="parameters">Parameters</h5>
  1898. <table class="table table-bordered table-striped table-condensed">
  1899. <thead>
  1900. <tr>
  1901. <th>Type</th>
  1902. <th>Name</th>
  1903. <th>Description</th>
  1904. </tr>
  1905. </thead>
  1906. <tbody>
  1907. <tr>
  1908. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1909. <td><span class="parametername">region</span></td>
  1910. <td>View-relative region for the frame to be drawn.</td>
  1911. </tr>
  1912. <tr>
  1913. <td><span class="xref">System.Int32</span></td>
  1914. <td><span class="parametername">padding</span></td>
  1915. <td>The padding to add around the outside of the drawn frame.</td>
  1916. </tr>
  1917. <tr>
  1918. <td><span class="xref">System.Boolean</span></td>
  1919. <td><span class="parametername">fill</span></td>
  1920. <td>If set to <code>true</code> it fill will the contents.</td>
  1921. </tr>
  1922. </tbody>
  1923. </table>
  1924. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  1925. <h4 id="Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_" data-uid="Terminal.Gui.View.DrawHotString(NStack.ustring,System.Boolean,Terminal.Gui.ColorScheme)">DrawHotString(ustring, Boolean, ColorScheme)</h4>
  1926. <div class="markdown level1 summary">
  1927. Utility function to draw strings that contains a hotkey using a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> and the &quot;focused&quot; state.
  1928. </div>
  1929. <div class="markdown level1 conceptual"></div>
  1930. <h5 class="decalaration">Declaration</h5>
  1931. <div class="codewrapper">
  1932. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, bool focused, ColorScheme scheme)</code></pre>
  1933. </div>
  1934. <h5 class="parameters">Parameters</h5>
  1935. <table class="table table-bordered table-striped table-condensed">
  1936. <thead>
  1937. <tr>
  1938. <th>Type</th>
  1939. <th>Name</th>
  1940. <th>Description</th>
  1941. </tr>
  1942. </thead>
  1943. <tbody>
  1944. <tr>
  1945. <td><span class="xref">NStack.ustring</span></td>
  1946. <td><span class="parametername">text</span></td>
  1947. <td>String to display, the underscore before a letter flags the next letter as the hotkey.</td>
  1948. </tr>
  1949. <tr>
  1950. <td><span class="xref">System.Boolean</span></td>
  1951. <td><span class="parametername">focused</span></td>
  1952. <td>If set to <code>true</code> this uses the focused colors from the color scheme, otherwise the regular ones.</td>
  1953. </tr>
  1954. <tr>
  1955. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  1956. <td><span class="parametername">scheme</span></td>
  1957. <td>The color scheme to use.</td>
  1958. </tr>
  1959. </tbody>
  1960. </table>
  1961. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  1962. <h4 id="Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_" data-uid="Terminal.Gui.View.DrawHotString(NStack.ustring,Terminal.Gui.Attribute,Terminal.Gui.Attribute)">DrawHotString(ustring, Attribute, Attribute)</h4>
  1963. <div class="markdown level1 summary">
  1964. Utility function to draw strings that contain a hotkey.
  1965. </div>
  1966. <div class="markdown level1 conceptual"></div>
  1967. <h5 class="decalaration">Declaration</h5>
  1968. <div class="codewrapper">
  1969. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, Attribute hotColor, Attribute normalColor)</code></pre>
  1970. </div>
  1971. <h5 class="parameters">Parameters</h5>
  1972. <table class="table table-bordered table-striped table-condensed">
  1973. <thead>
  1974. <tr>
  1975. <th>Type</th>
  1976. <th>Name</th>
  1977. <th>Description</th>
  1978. </tr>
  1979. </thead>
  1980. <tbody>
  1981. <tr>
  1982. <td><span class="xref">NStack.ustring</span></td>
  1983. <td><span class="parametername">text</span></td>
  1984. <td>String to display, the hotkey specifier before a letter flags the next letter as the hotkey.</td>
  1985. </tr>
  1986. <tr>
  1987. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1988. <td><span class="parametername">hotColor</span></td>
  1989. <td>Hot color.</td>
  1990. </tr>
  1991. <tr>
  1992. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1993. <td><span class="parametername">normalColor</span></td>
  1994. <td>Normal color.</td>
  1995. </tr>
  1996. </tbody>
  1997. </table>
  1998. <h5 id="Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute__remarks">Remarks</h5>
  1999. <div class="markdown level1 remarks">
  2000. <p>The hotkey is any character following the hotkey specifier, which is the underscore (&apos;_&apos;) character by default.</p>
  2001. <p>The hotkey specifier can be changed via <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">HotKeySpecifier</a></p>
  2002. </div>
  2003. <a id="Terminal_Gui_View_EndInit_" data-uid="Terminal.Gui.View.EndInit*"></a>
  2004. <h4 id="Terminal_Gui_View_EndInit" data-uid="Terminal.Gui.View.EndInit">EndInit()</h4>
  2005. <div class="markdown level1 summary">
  2006. This derived from <span class="xref">System.ComponentModel.ISupportInitializeNotification</span> to allow notify all the views that are ending initialized.
  2007. </div>
  2008. <div class="markdown level1 conceptual"></div>
  2009. <h5 class="decalaration">Declaration</h5>
  2010. <div class="codewrapper">
  2011. <pre><code class="lang-csharp hljs">public void EndInit()</code></pre>
  2012. </div>
  2013. <a id="Terminal_Gui_View_EnsureFocus_" data-uid="Terminal.Gui.View.EnsureFocus*"></a>
  2014. <h4 id="Terminal_Gui_View_EnsureFocus" data-uid="Terminal.Gui.View.EnsureFocus">EnsureFocus()</h4>
  2015. <div class="markdown level1 summary">
  2016. Finds the first view in the hierarchy that wants to get the focus if nothing is currently focused, otherwise, it does nothing.
  2017. </div>
  2018. <div class="markdown level1 conceptual"></div>
  2019. <h5 class="decalaration">Declaration</h5>
  2020. <div class="codewrapper">
  2021. <pre><code class="lang-csharp hljs">public void EnsureFocus()</code></pre>
  2022. </div>
  2023. <a id="Terminal_Gui_View_FocusFirst_" data-uid="Terminal.Gui.View.FocusFirst*"></a>
  2024. <h4 id="Terminal_Gui_View_FocusFirst" data-uid="Terminal.Gui.View.FocusFirst">FocusFirst()</h4>
  2025. <div class="markdown level1 summary">
  2026. Focuses the first focusable subview if one exists.
  2027. </div>
  2028. <div class="markdown level1 conceptual"></div>
  2029. <h5 class="decalaration">Declaration</h5>
  2030. <div class="codewrapper">
  2031. <pre><code class="lang-csharp hljs">public void FocusFirst()</code></pre>
  2032. </div>
  2033. <a id="Terminal_Gui_View_FocusLast_" data-uid="Terminal.Gui.View.FocusLast*"></a>
  2034. <h4 id="Terminal_Gui_View_FocusLast" data-uid="Terminal.Gui.View.FocusLast">FocusLast()</h4>
  2035. <div class="markdown level1 summary">
  2036. Focuses the last focusable subview if one exists.
  2037. </div>
  2038. <div class="markdown level1 conceptual"></div>
  2039. <h5 class="decalaration">Declaration</h5>
  2040. <div class="codewrapper">
  2041. <pre><code class="lang-csharp hljs">public void FocusLast()</code></pre>
  2042. </div>
  2043. <a id="Terminal_Gui_View_FocusNext_" data-uid="Terminal.Gui.View.FocusNext*"></a>
  2044. <h4 id="Terminal_Gui_View_FocusNext" data-uid="Terminal.Gui.View.FocusNext">FocusNext()</h4>
  2045. <div class="markdown level1 summary">
  2046. Focuses the next view.
  2047. </div>
  2048. <div class="markdown level1 conceptual"></div>
  2049. <h5 class="decalaration">Declaration</h5>
  2050. <div class="codewrapper">
  2051. <pre><code class="lang-csharp hljs">public bool FocusNext()</code></pre>
  2052. </div>
  2053. <h5 class="returns">Returns</h5>
  2054. <table class="table table-bordered table-striped table-condensed">
  2055. <thead>
  2056. <tr>
  2057. <th>Type</th>
  2058. <th>Description</th>
  2059. </tr>
  2060. </thead>
  2061. <tbody>
  2062. <tr>
  2063. <td><span class="xref">System.Boolean</span></td>
  2064. <td><code>true</code>, if next was focused, <code>false</code> otherwise.</td>
  2065. </tr>
  2066. </tbody>
  2067. </table>
  2068. <a id="Terminal_Gui_View_FocusPrev_" data-uid="Terminal.Gui.View.FocusPrev*"></a>
  2069. <h4 id="Terminal_Gui_View_FocusPrev" data-uid="Terminal.Gui.View.FocusPrev">FocusPrev()</h4>
  2070. <div class="markdown level1 summary">
  2071. Focuses the previous view.
  2072. </div>
  2073. <div class="markdown level1 conceptual"></div>
  2074. <h5 class="decalaration">Declaration</h5>
  2075. <div class="codewrapper">
  2076. <pre><code class="lang-csharp hljs">public bool FocusPrev()</code></pre>
  2077. </div>
  2078. <h5 class="returns">Returns</h5>
  2079. <table class="table table-bordered table-striped table-condensed">
  2080. <thead>
  2081. <tr>
  2082. <th>Type</th>
  2083. <th>Description</th>
  2084. </tr>
  2085. </thead>
  2086. <tbody>
  2087. <tr>
  2088. <td><span class="xref">System.Boolean</span></td>
  2089. <td><code>true</code>, if previous was focused, <code>false</code> otherwise.</td>
  2090. </tr>
  2091. </tbody>
  2092. </table>
  2093. <a id="Terminal_Gui_View_GetCurrentHeight_" data-uid="Terminal.Gui.View.GetCurrentHeight*"></a>
  2094. <h4 id="Terminal_Gui_View_GetCurrentHeight_System_Int32__" data-uid="Terminal.Gui.View.GetCurrentHeight(System.Int32@)">GetCurrentHeight(out Int32)</h4>
  2095. <div class="markdown level1 summary">
  2096. Calculate the height based on the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> settings.
  2097. </div>
  2098. <div class="markdown level1 conceptual"></div>
  2099. <h5 class="decalaration">Declaration</h5>
  2100. <div class="codewrapper">
  2101. <pre><code class="lang-csharp hljs">public bool GetCurrentHeight(out int currentHeight)</code></pre>
  2102. </div>
  2103. <h5 class="parameters">Parameters</h5>
  2104. <table class="table table-bordered table-striped table-condensed">
  2105. <thead>
  2106. <tr>
  2107. <th>Type</th>
  2108. <th>Name</th>
  2109. <th>Description</th>
  2110. </tr>
  2111. </thead>
  2112. <tbody>
  2113. <tr>
  2114. <td><span class="xref">System.Int32</span></td>
  2115. <td><span class="parametername">currentHeight</span></td>
  2116. <td>The real current height.</td>
  2117. </tr>
  2118. </tbody>
  2119. </table>
  2120. <h5 class="returns">Returns</h5>
  2121. <table class="table table-bordered table-striped table-condensed">
  2122. <thead>
  2123. <tr>
  2124. <th>Type</th>
  2125. <th>Description</th>
  2126. </tr>
  2127. </thead>
  2128. <tbody>
  2129. <tr>
  2130. <td><span class="xref">System.Boolean</span></td>
  2131. <td><code>true</code> if the height can be directly assigned, <code>false</code> otherwise.</td>
  2132. </tr>
  2133. </tbody>
  2134. </table>
  2135. <a id="Terminal_Gui_View_GetCurrentWidth_" data-uid="Terminal.Gui.View.GetCurrentWidth*"></a>
  2136. <h4 id="Terminal_Gui_View_GetCurrentWidth_System_Int32__" data-uid="Terminal.Gui.View.GetCurrentWidth(System.Int32@)">GetCurrentWidth(out Int32)</h4>
  2137. <div class="markdown level1 summary">
  2138. Gets the current width based on the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a> settings.
  2139. </div>
  2140. <div class="markdown level1 conceptual"></div>
  2141. <h5 class="decalaration">Declaration</h5>
  2142. <div class="codewrapper">
  2143. <pre><code class="lang-csharp hljs">public bool GetCurrentWidth(out int currentWidth)</code></pre>
  2144. </div>
  2145. <h5 class="parameters">Parameters</h5>
  2146. <table class="table table-bordered table-striped table-condensed">
  2147. <thead>
  2148. <tr>
  2149. <th>Type</th>
  2150. <th>Name</th>
  2151. <th>Description</th>
  2152. </tr>
  2153. </thead>
  2154. <tbody>
  2155. <tr>
  2156. <td><span class="xref">System.Int32</span></td>
  2157. <td><span class="parametername">currentWidth</span></td>
  2158. <td>The real current width.</td>
  2159. </tr>
  2160. </tbody>
  2161. </table>
  2162. <h5 class="returns">Returns</h5>
  2163. <table class="table table-bordered table-striped table-condensed">
  2164. <thead>
  2165. <tr>
  2166. <th>Type</th>
  2167. <th>Description</th>
  2168. </tr>
  2169. </thead>
  2170. <tbody>
  2171. <tr>
  2172. <td><span class="xref">System.Boolean</span></td>
  2173. <td><code>true</code> if the width can be directly assigned, <code>false</code> otherwise.</td>
  2174. </tr>
  2175. </tbody>
  2176. </table>
  2177. <a id="Terminal_Gui_View_GetKeyFromCommand_" data-uid="Terminal.Gui.View.GetKeyFromCommand*"></a>
  2178. <h4 id="Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_" data-uid="Terminal.Gui.View.GetKeyFromCommand(Terminal.Gui.Command)">GetKeyFromCommand(Command)</h4>
  2179. <div class="markdown level1 summary">
  2180. Gets the key used by a command.
  2181. </div>
  2182. <div class="markdown level1 conceptual"></div>
  2183. <h5 class="decalaration">Declaration</h5>
  2184. <div class="codewrapper">
  2185. <pre><code class="lang-csharp hljs">public Key GetKeyFromCommand(Command command)</code></pre>
  2186. </div>
  2187. <h5 class="parameters">Parameters</h5>
  2188. <table class="table table-bordered table-striped table-condensed">
  2189. <thead>
  2190. <tr>
  2191. <th>Type</th>
  2192. <th>Name</th>
  2193. <th>Description</th>
  2194. </tr>
  2195. </thead>
  2196. <tbody>
  2197. <tr>
  2198. <td><a class="xref" href="Terminal.Gui.Command.html">Command</a></td>
  2199. <td><span class="parametername">command</span></td>
  2200. <td>The command to search.</td>
  2201. </tr>
  2202. </tbody>
  2203. </table>
  2204. <h5 class="returns">Returns</h5>
  2205. <table class="table table-bordered table-striped table-condensed">
  2206. <thead>
  2207. <tr>
  2208. <th>Type</th>
  2209. <th>Description</th>
  2210. </tr>
  2211. </thead>
  2212. <tbody>
  2213. <tr>
  2214. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  2215. <td>The <a class="xref" href="Terminal.Gui.Key.html">Key</a> used by a <a class="xref" href="Terminal.Gui.Command.html">Command</a></td>
  2216. </tr>
  2217. </tbody>
  2218. </table>
  2219. <a id="Terminal_Gui_View_GetNormalColor_" data-uid="Terminal.Gui.View.GetNormalColor*"></a>
  2220. <h4 id="Terminal_Gui_View_GetNormalColor" data-uid="Terminal.Gui.View.GetNormalColor">GetNormalColor()</h4>
  2221. <div class="markdown level1 summary">
  2222. Determines the current <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> based on the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">Enabled</a> value.
  2223. </div>
  2224. <div class="markdown level1 conceptual"></div>
  2225. <h5 class="decalaration">Declaration</h5>
  2226. <div class="codewrapper">
  2227. <pre><code class="lang-csharp hljs">public Attribute GetNormalColor()</code></pre>
  2228. </div>
  2229. <h5 class="returns">Returns</h5>
  2230. <table class="table table-bordered table-striped table-condensed">
  2231. <thead>
  2232. <tr>
  2233. <th>Type</th>
  2234. <th>Description</th>
  2235. </tr>
  2236. </thead>
  2237. <tbody>
  2238. <tr>
  2239. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  2240. <td><a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_Normal">Normal</a> if <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">Enabled</a> is <span class="xref">true</span>
  2241. or <a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_Disabled">Disabled</a> if <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">Enabled</a> is <span class="xref">false</span></td>
  2242. </tr>
  2243. </tbody>
  2244. </table>
  2245. <a id="Terminal_Gui_View_GetSupportedCommands_" data-uid="Terminal.Gui.View.GetSupportedCommands*"></a>
  2246. <h4 id="Terminal_Gui_View_GetSupportedCommands" data-uid="Terminal.Gui.View.GetSupportedCommands">GetSupportedCommands()</h4>
  2247. <div class="markdown level1 summary">
  2248. Returns all commands that are supported by this <a class="xref" href="Terminal.Gui.View.html">View</a>
  2249. </div>
  2250. <div class="markdown level1 conceptual"></div>
  2251. <h5 class="decalaration">Declaration</h5>
  2252. <div class="codewrapper">
  2253. <pre><code class="lang-csharp hljs">public IEnumerable&lt;Command&gt; GetSupportedCommands()</code></pre>
  2254. </div>
  2255. <h5 class="returns">Returns</h5>
  2256. <table class="table table-bordered table-striped table-condensed">
  2257. <thead>
  2258. <tr>
  2259. <th>Type</th>
  2260. <th>Description</th>
  2261. </tr>
  2262. </thead>
  2263. <tbody>
  2264. <tr>
  2265. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="Terminal.Gui.Command.html">Command</a>&gt;</td>
  2266. <td></td>
  2267. </tr>
  2268. </tbody>
  2269. </table>
  2270. <a id="Terminal_Gui_View_GetTopSuperView_" data-uid="Terminal.Gui.View.GetTopSuperView*"></a>
  2271. <h4 id="Terminal_Gui_View_GetTopSuperView" data-uid="Terminal.Gui.View.GetTopSuperView">GetTopSuperView()</h4>
  2272. <div class="markdown level1 summary">
  2273. Get the top superview of a given <a class="xref" href="Terminal.Gui.View.html">View</a>.
  2274. </div>
  2275. <div class="markdown level1 conceptual"></div>
  2276. <h5 class="decalaration">Declaration</h5>
  2277. <div class="codewrapper">
  2278. <pre><code class="lang-csharp hljs">public View GetTopSuperView()</code></pre>
  2279. </div>
  2280. <h5 class="returns">Returns</h5>
  2281. <table class="table table-bordered table-striped table-condensed">
  2282. <thead>
  2283. <tr>
  2284. <th>Type</th>
  2285. <th>Description</th>
  2286. </tr>
  2287. </thead>
  2288. <tbody>
  2289. <tr>
  2290. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2291. <td>The superview view.</td>
  2292. </tr>
  2293. </tbody>
  2294. </table>
  2295. <a id="Terminal_Gui_View_InvokeKeybindings_" data-uid="Terminal.Gui.View.InvokeKeybindings*"></a>
  2296. <h4 id="Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.InvokeKeybindings(Terminal.Gui.KeyEvent)">InvokeKeybindings(KeyEvent)</h4>
  2297. <div class="markdown level1 summary">
  2298. Invokes any binding that is registered on this <a class="xref" href="Terminal.Gui.View.html">View</a>
  2299. and matches the <code data-dev-comment-type="paramref" class="paramref">keyEvent</code>
  2300. </div>
  2301. <div class="markdown level1 conceptual"></div>
  2302. <h5 class="decalaration">Declaration</h5>
  2303. <div class="codewrapper">
  2304. <pre><code class="lang-csharp hljs">protected bool? InvokeKeybindings(KeyEvent keyEvent)</code></pre>
  2305. </div>
  2306. <h5 class="parameters">Parameters</h5>
  2307. <table class="table table-bordered table-striped table-condensed">
  2308. <thead>
  2309. <tr>
  2310. <th>Type</th>
  2311. <th>Name</th>
  2312. <th>Description</th>
  2313. </tr>
  2314. </thead>
  2315. <tbody>
  2316. <tr>
  2317. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2318. <td><span class="parametername">keyEvent</span></td>
  2319. <td>The key event passed.</td>
  2320. </tr>
  2321. </tbody>
  2322. </table>
  2323. <h5 class="returns">Returns</h5>
  2324. <table class="table table-bordered table-striped table-condensed">
  2325. <thead>
  2326. <tr>
  2327. <th>Type</th>
  2328. <th>Description</th>
  2329. </tr>
  2330. </thead>
  2331. <tbody>
  2332. <tr>
  2333. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
  2334. <td></td>
  2335. </tr>
  2336. </tbody>
  2337. </table>
  2338. <a id="Terminal_Gui_View_LayoutSubviews_" data-uid="Terminal.Gui.View.LayoutSubviews*"></a>
  2339. <h4 id="Terminal_Gui_View_LayoutSubviews" data-uid="Terminal.Gui.View.LayoutSubviews">LayoutSubviews()</h4>
  2340. <div class="markdown level1 summary">
  2341. Invoked when a view starts executing or when the dimensions of the view have changed, for example in
  2342. response to the container view or terminal resizing.
  2343. </div>
  2344. <div class="markdown level1 conceptual"></div>
  2345. <h5 class="decalaration">Declaration</h5>
  2346. <div class="codewrapper">
  2347. <pre><code class="lang-csharp hljs">public virtual void LayoutSubviews()</code></pre>
  2348. </div>
  2349. <h5 id="Terminal_Gui_View_LayoutSubviews_remarks">Remarks</h5>
  2350. <div class="markdown level1 remarks">
  2351. Calls <span class="xref">Terminal.Gui.View.OnLayoutComplete(Terminal.Gui.View.LayoutEventArgs)</span> (which raises the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">LayoutComplete</a> event) before it returns.
  2352. </div>
  2353. <a id="Terminal_Gui_View_Move_" data-uid="Terminal.Gui.View.Move*"></a>
  2354. <h4 id="Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_" data-uid="Terminal.Gui.View.Move(System.Int32,System.Int32,System.Boolean)">Move(Int32, Int32, Boolean)</h4>
  2355. <div class="markdown level1 summary">
  2356. This moves the cursor to the specified column and row in the view.
  2357. </div>
  2358. <div class="markdown level1 conceptual"></div>
  2359. <h5 class="decalaration">Declaration</h5>
  2360. <div class="codewrapper">
  2361. <pre><code class="lang-csharp hljs">public void Move(int col, int row, bool clipped = true)</code></pre>
  2362. </div>
  2363. <h5 class="parameters">Parameters</h5>
  2364. <table class="table table-bordered table-striped table-condensed">
  2365. <thead>
  2366. <tr>
  2367. <th>Type</th>
  2368. <th>Name</th>
  2369. <th>Description</th>
  2370. </tr>
  2371. </thead>
  2372. <tbody>
  2373. <tr>
  2374. <td><span class="xref">System.Int32</span></td>
  2375. <td><span class="parametername">col</span></td>
  2376. <td>Col.</td>
  2377. </tr>
  2378. <tr>
  2379. <td><span class="xref">System.Int32</span></td>
  2380. <td><span class="parametername">row</span></td>
  2381. <td>Row.</td>
  2382. </tr>
  2383. <tr>
  2384. <td><span class="xref">System.Boolean</span></td>
  2385. <td><span class="parametername">clipped</span></td>
  2386. <td>Whether to clip the result of the ViewToScreen method,
  2387. if set to <code>true</code>, the col, row values are clamped to the screen (terminal) dimensions (0..TerminalDim-1).</td>
  2388. </tr>
  2389. </tbody>
  2390. </table>
  2391. <a id="Terminal_Gui_View_OnAdded_" data-uid="Terminal.Gui.View.OnAdded*"></a>
  2392. <h4 id="Terminal_Gui_View_OnAdded_Terminal_Gui_View_" data-uid="Terminal.Gui.View.OnAdded(Terminal.Gui.View)">OnAdded(View)</h4>
  2393. <div class="markdown level1 summary">
  2394. Method invoked when a subview is being added to this view.
  2395. </div>
  2396. <div class="markdown level1 conceptual"></div>
  2397. <h5 class="decalaration">Declaration</h5>
  2398. <div class="codewrapper">
  2399. <pre><code class="lang-csharp hljs">public virtual void OnAdded(View view)</code></pre>
  2400. </div>
  2401. <h5 class="parameters">Parameters</h5>
  2402. <table class="table table-bordered table-striped table-condensed">
  2403. <thead>
  2404. <tr>
  2405. <th>Type</th>
  2406. <th>Name</th>
  2407. <th>Description</th>
  2408. </tr>
  2409. </thead>
  2410. <tbody>
  2411. <tr>
  2412. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2413. <td><span class="parametername">view</span></td>
  2414. <td>The subview being added.</td>
  2415. </tr>
  2416. </tbody>
  2417. </table>
  2418. <a id="Terminal_Gui_View_OnCanFocusChanged_" data-uid="Terminal.Gui.View.OnCanFocusChanged*"></a>
  2419. <h4 id="Terminal_Gui_View_OnCanFocusChanged" data-uid="Terminal.Gui.View.OnCanFocusChanged">OnCanFocusChanged()</h4>
  2420. <div class="markdown level1 summary"></div>
  2421. <div class="markdown level1 conceptual"></div>
  2422. <h5 class="decalaration">Declaration</h5>
  2423. <div class="codewrapper">
  2424. <pre><code class="lang-csharp hljs">public override void OnCanFocusChanged()</code></pre>
  2425. </div>
  2426. <h5 class="overrides">Overrides</h5>
  2427. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnCanFocusChanged">Responder.OnCanFocusChanged()</a></div>
  2428. <a id="Terminal_Gui_View_OnDrawContent_" data-uid="Terminal.Gui.View.OnDrawContent*"></a>
  2429. <h4 id="Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.OnDrawContent(Terminal.Gui.Rect)">OnDrawContent(Rect)</h4>
  2430. <div class="markdown level1 summary">
  2431. Enables overrides to draw infinitely scrolled content and/or a background behind added controls.
  2432. </div>
  2433. <div class="markdown level1 conceptual"></div>
  2434. <h5 class="decalaration">Declaration</h5>
  2435. <div class="codewrapper">
  2436. <pre><code class="lang-csharp hljs">public virtual void OnDrawContent(Rect viewport)</code></pre>
  2437. </div>
  2438. <h5 class="parameters">Parameters</h5>
  2439. <table class="table table-bordered table-striped table-condensed">
  2440. <thead>
  2441. <tr>
  2442. <th>Type</th>
  2443. <th>Name</th>
  2444. <th>Description</th>
  2445. </tr>
  2446. </thead>
  2447. <tbody>
  2448. <tr>
  2449. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2450. <td><span class="parametername">viewport</span></td>
  2451. <td>The view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2452. </tr>
  2453. </tbody>
  2454. </table>
  2455. <h5 id="Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect__remarks">Remarks</h5>
  2456. <div class="markdown level1 remarks">
  2457. This method will be called before any subviews added with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> have been drawn.
  2458. </div>
  2459. <a id="Terminal_Gui_View_OnDrawContentComplete_" data-uid="Terminal.Gui.View.OnDrawContentComplete*"></a>
  2460. <h4 id="Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.OnDrawContentComplete(Terminal.Gui.Rect)">OnDrawContentComplete(Rect)</h4>
  2461. <div class="markdown level1 summary">
  2462. Enables overrides after completed drawing infinitely scrolled content and/or a background behind removed controls.
  2463. </div>
  2464. <div class="markdown level1 conceptual"></div>
  2465. <h5 class="decalaration">Declaration</h5>
  2466. <div class="codewrapper">
  2467. <pre><code class="lang-csharp hljs">public virtual void OnDrawContentComplete(Rect viewport)</code></pre>
  2468. </div>
  2469. <h5 class="parameters">Parameters</h5>
  2470. <table class="table table-bordered table-striped table-condensed">
  2471. <thead>
  2472. <tr>
  2473. <th>Type</th>
  2474. <th>Name</th>
  2475. <th>Description</th>
  2476. </tr>
  2477. </thead>
  2478. <tbody>
  2479. <tr>
  2480. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2481. <td><span class="parametername">viewport</span></td>
  2482. <td>The view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2483. </tr>
  2484. </tbody>
  2485. </table>
  2486. <h5 id="Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect__remarks">Remarks</h5>
  2487. <div class="markdown level1 remarks">
  2488. This method will be called after any subviews removed with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> have been completed drawing.
  2489. </div>
  2490. <a id="Terminal_Gui_View_OnEnabledChanged_" data-uid="Terminal.Gui.View.OnEnabledChanged*"></a>
  2491. <h4 id="Terminal_Gui_View_OnEnabledChanged" data-uid="Terminal.Gui.View.OnEnabledChanged">OnEnabledChanged()</h4>
  2492. <div class="markdown level1 summary"></div>
  2493. <div class="markdown level1 conceptual"></div>
  2494. <h5 class="decalaration">Declaration</h5>
  2495. <div class="codewrapper">
  2496. <pre><code class="lang-csharp hljs">public override void OnEnabledChanged()</code></pre>
  2497. </div>
  2498. <h5 class="overrides">Overrides</h5>
  2499. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnEnabledChanged">Responder.OnEnabledChanged()</a></div>
  2500. <a id="Terminal_Gui_View_OnEnter_" data-uid="Terminal.Gui.View.OnEnter*"></a>
  2501. <h4 id="Terminal_Gui_View_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.View.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  2502. <div class="markdown level1 summary"></div>
  2503. <div class="markdown level1 conceptual"></div>
  2504. <h5 class="decalaration">Declaration</h5>
  2505. <div class="codewrapper">
  2506. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  2507. </div>
  2508. <h5 class="parameters">Parameters</h5>
  2509. <table class="table table-bordered table-striped table-condensed">
  2510. <thead>
  2511. <tr>
  2512. <th>Type</th>
  2513. <th>Name</th>
  2514. <th>Description</th>
  2515. </tr>
  2516. </thead>
  2517. <tbody>
  2518. <tr>
  2519. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2520. <td><span class="parametername">view</span></td>
  2521. <td></td>
  2522. </tr>
  2523. </tbody>
  2524. </table>
  2525. <h5 class="returns">Returns</h5>
  2526. <table class="table table-bordered table-striped table-condensed">
  2527. <thead>
  2528. <tr>
  2529. <th>Type</th>
  2530. <th>Description</th>
  2531. </tr>
  2532. </thead>
  2533. <tbody>
  2534. <tr>
  2535. <td><span class="xref">System.Boolean</span></td>
  2536. <td></td>
  2537. </tr>
  2538. </tbody>
  2539. </table>
  2540. <h5 class="overrides">Overrides</h5>
  2541. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnEnter_Terminal_Gui_View_">Responder.OnEnter(View)</a></div>
  2542. <a id="Terminal_Gui_View_OnKeyDown_" data-uid="Terminal.Gui.View.OnKeyDown*"></a>
  2543. <h4 id="Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  2544. <div class="markdown level1 summary"></div>
  2545. <div class="markdown level1 conceptual"></div>
  2546. <h5 class="decalaration">Declaration</h5>
  2547. <div class="codewrapper">
  2548. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  2549. </div>
  2550. <h5 class="parameters">Parameters</h5>
  2551. <table class="table table-bordered table-striped table-condensed">
  2552. <thead>
  2553. <tr>
  2554. <th>Type</th>
  2555. <th>Name</th>
  2556. <th>Description</th>
  2557. </tr>
  2558. </thead>
  2559. <tbody>
  2560. <tr>
  2561. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2562. <td><span class="parametername">keyEvent</span></td>
  2563. <td></td>
  2564. </tr>
  2565. </tbody>
  2566. </table>
  2567. <h5 class="returns">Returns</h5>
  2568. <table class="table table-bordered table-striped table-condensed">
  2569. <thead>
  2570. <tr>
  2571. <th>Type</th>
  2572. <th>Description</th>
  2573. </tr>
  2574. </thead>
  2575. <tbody>
  2576. <tr>
  2577. <td><span class="xref">System.Boolean</span></td>
  2578. <td></td>
  2579. </tr>
  2580. </tbody>
  2581. </table>
  2582. <h5 class="overrides">Overrides</h5>
  2583. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyDown_Terminal_Gui_KeyEvent_">Responder.OnKeyDown(KeyEvent)</a></div>
  2584. <a id="Terminal_Gui_View_OnKeyUp_" data-uid="Terminal.Gui.View.OnKeyUp*"></a>
  2585. <h4 id="Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  2586. <div class="markdown level1 summary"></div>
  2587. <div class="markdown level1 conceptual"></div>
  2588. <h5 class="decalaration">Declaration</h5>
  2589. <div class="codewrapper">
  2590. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  2591. </div>
  2592. <h5 class="parameters">Parameters</h5>
  2593. <table class="table table-bordered table-striped table-condensed">
  2594. <thead>
  2595. <tr>
  2596. <th>Type</th>
  2597. <th>Name</th>
  2598. <th>Description</th>
  2599. </tr>
  2600. </thead>
  2601. <tbody>
  2602. <tr>
  2603. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2604. <td><span class="parametername">keyEvent</span></td>
  2605. <td></td>
  2606. </tr>
  2607. </tbody>
  2608. </table>
  2609. <h5 class="returns">Returns</h5>
  2610. <table class="table table-bordered table-striped table-condensed">
  2611. <thead>
  2612. <tr>
  2613. <th>Type</th>
  2614. <th>Description</th>
  2615. </tr>
  2616. </thead>
  2617. <tbody>
  2618. <tr>
  2619. <td><span class="xref">System.Boolean</span></td>
  2620. <td></td>
  2621. </tr>
  2622. </tbody>
  2623. </table>
  2624. <h5 class="overrides">Overrides</h5>
  2625. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyUp_Terminal_Gui_KeyEvent_">Responder.OnKeyUp(KeyEvent)</a></div>
  2626. <a id="Terminal_Gui_View_OnLeave_" data-uid="Terminal.Gui.View.OnLeave*"></a>
  2627. <h4 id="Terminal_Gui_View_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.View.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  2628. <div class="markdown level1 summary"></div>
  2629. <div class="markdown level1 conceptual"></div>
  2630. <h5 class="decalaration">Declaration</h5>
  2631. <div class="codewrapper">
  2632. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  2633. </div>
  2634. <h5 class="parameters">Parameters</h5>
  2635. <table class="table table-bordered table-striped table-condensed">
  2636. <thead>
  2637. <tr>
  2638. <th>Type</th>
  2639. <th>Name</th>
  2640. <th>Description</th>
  2641. </tr>
  2642. </thead>
  2643. <tbody>
  2644. <tr>
  2645. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2646. <td><span class="parametername">view</span></td>
  2647. <td></td>
  2648. </tr>
  2649. </tbody>
  2650. </table>
  2651. <h5 class="returns">Returns</h5>
  2652. <table class="table table-bordered table-striped table-condensed">
  2653. <thead>
  2654. <tr>
  2655. <th>Type</th>
  2656. <th>Description</th>
  2657. </tr>
  2658. </thead>
  2659. <tbody>
  2660. <tr>
  2661. <td><span class="xref">System.Boolean</span></td>
  2662. <td></td>
  2663. </tr>
  2664. </tbody>
  2665. </table>
  2666. <h5 class="overrides">Overrides</h5>
  2667. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnLeave_Terminal_Gui_View_">Responder.OnLeave(View)</a></div>
  2668. <a id="Terminal_Gui_View_OnMouseClick_" data-uid="Terminal.Gui.View.OnMouseClick*"></a>
  2669. <h4 id="Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_" data-uid="Terminal.Gui.View.OnMouseClick(Terminal.Gui.View.MouseEventArgs)">OnMouseClick(View.MouseEventArgs)</h4>
  2670. <div class="markdown level1 summary">
  2671. Invokes the MouseClick event.
  2672. </div>
  2673. <div class="markdown level1 conceptual"></div>
  2674. <h5 class="decalaration">Declaration</h5>
  2675. <div class="codewrapper">
  2676. <pre><code class="lang-csharp hljs">protected bool OnMouseClick(View.MouseEventArgs args)</code></pre>
  2677. </div>
  2678. <h5 class="parameters">Parameters</h5>
  2679. <table class="table table-bordered table-striped table-condensed">
  2680. <thead>
  2681. <tr>
  2682. <th>Type</th>
  2683. <th>Name</th>
  2684. <th>Description</th>
  2685. </tr>
  2686. </thead>
  2687. <tbody>
  2688. <tr>
  2689. <td><a class="xref" href="Terminal.Gui.View.MouseEventArgs.html">View.MouseEventArgs</a></td>
  2690. <td><span class="parametername">args</span></td>
  2691. <td></td>
  2692. </tr>
  2693. </tbody>
  2694. </table>
  2695. <h5 class="returns">Returns</h5>
  2696. <table class="table table-bordered table-striped table-condensed">
  2697. <thead>
  2698. <tr>
  2699. <th>Type</th>
  2700. <th>Description</th>
  2701. </tr>
  2702. </thead>
  2703. <tbody>
  2704. <tr>
  2705. <td><span class="xref">System.Boolean</span></td>
  2706. <td></td>
  2707. </tr>
  2708. </tbody>
  2709. </table>
  2710. <a id="Terminal_Gui_View_OnMouseEnter_" data-uid="Terminal.Gui.View.OnMouseEnter*"></a>
  2711. <h4 id="Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseEnter(Terminal.Gui.MouseEvent)">OnMouseEnter(MouseEvent)</h4>
  2712. <div class="markdown level1 summary"></div>
  2713. <div class="markdown level1 conceptual"></div>
  2714. <h5 class="decalaration">Declaration</h5>
  2715. <div class="codewrapper">
  2716. <pre><code class="lang-csharp hljs">public override bool OnMouseEnter(MouseEvent mouseEvent)</code></pre>
  2717. </div>
  2718. <h5 class="parameters">Parameters</h5>
  2719. <table class="table table-bordered table-striped table-condensed">
  2720. <thead>
  2721. <tr>
  2722. <th>Type</th>
  2723. <th>Name</th>
  2724. <th>Description</th>
  2725. </tr>
  2726. </thead>
  2727. <tbody>
  2728. <tr>
  2729. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  2730. <td><span class="parametername">mouseEvent</span></td>
  2731. <td></td>
  2732. </tr>
  2733. </tbody>
  2734. </table>
  2735. <h5 class="returns">Returns</h5>
  2736. <table class="table table-bordered table-striped table-condensed">
  2737. <thead>
  2738. <tr>
  2739. <th>Type</th>
  2740. <th>Description</th>
  2741. </tr>
  2742. </thead>
  2743. <tbody>
  2744. <tr>
  2745. <td><span class="xref">System.Boolean</span></td>
  2746. <td></td>
  2747. </tr>
  2748. </tbody>
  2749. </table>
  2750. <h5 class="overrides">Overrides</h5>
  2751. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseEnter_Terminal_Gui_MouseEvent_">Responder.OnMouseEnter(MouseEvent)</a></div>
  2752. <a id="Terminal_Gui_View_OnMouseEvent_" data-uid="Terminal.Gui.View.OnMouseEvent*"></a>
  2753. <h4 id="Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseEvent(Terminal.Gui.MouseEvent)">OnMouseEvent(MouseEvent)</h4>
  2754. <div class="markdown level1 summary">
  2755. Method invoked when a mouse event is generated
  2756. </div>
  2757. <div class="markdown level1 conceptual"></div>
  2758. <h5 class="decalaration">Declaration</h5>
  2759. <div class="codewrapper">
  2760. <pre><code class="lang-csharp hljs">public virtual bool OnMouseEvent(MouseEvent mouseEvent)</code></pre>
  2761. </div>
  2762. <h5 class="parameters">Parameters</h5>
  2763. <table class="table table-bordered table-striped table-condensed">
  2764. <thead>
  2765. <tr>
  2766. <th>Type</th>
  2767. <th>Name</th>
  2768. <th>Description</th>
  2769. </tr>
  2770. </thead>
  2771. <tbody>
  2772. <tr>
  2773. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  2774. <td><span class="parametername">mouseEvent</span></td>
  2775. <td></td>
  2776. </tr>
  2777. </tbody>
  2778. </table>
  2779. <h5 class="returns">Returns</h5>
  2780. <table class="table table-bordered table-striped table-condensed">
  2781. <thead>
  2782. <tr>
  2783. <th>Type</th>
  2784. <th>Description</th>
  2785. </tr>
  2786. </thead>
  2787. <tbody>
  2788. <tr>
  2789. <td><span class="xref">System.Boolean</span></td>
  2790. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  2791. </tr>
  2792. </tbody>
  2793. </table>
  2794. <a id="Terminal_Gui_View_OnMouseLeave_" data-uid="Terminal.Gui.View.OnMouseLeave*"></a>
  2795. <h4 id="Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseLeave(Terminal.Gui.MouseEvent)">OnMouseLeave(MouseEvent)</h4>
  2796. <div class="markdown level1 summary"></div>
  2797. <div class="markdown level1 conceptual"></div>
  2798. <h5 class="decalaration">Declaration</h5>
  2799. <div class="codewrapper">
  2800. <pre><code class="lang-csharp hljs">public override bool OnMouseLeave(MouseEvent mouseEvent)</code></pre>
  2801. </div>
  2802. <h5 class="parameters">Parameters</h5>
  2803. <table class="table table-bordered table-striped table-condensed">
  2804. <thead>
  2805. <tr>
  2806. <th>Type</th>
  2807. <th>Name</th>
  2808. <th>Description</th>
  2809. </tr>
  2810. </thead>
  2811. <tbody>
  2812. <tr>
  2813. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  2814. <td><span class="parametername">mouseEvent</span></td>
  2815. <td></td>
  2816. </tr>
  2817. </tbody>
  2818. </table>
  2819. <h5 class="returns">Returns</h5>
  2820. <table class="table table-bordered table-striped table-condensed">
  2821. <thead>
  2822. <tr>
  2823. <th>Type</th>
  2824. <th>Description</th>
  2825. </tr>
  2826. </thead>
  2827. <tbody>
  2828. <tr>
  2829. <td><span class="xref">System.Boolean</span></td>
  2830. <td></td>
  2831. </tr>
  2832. </tbody>
  2833. </table>
  2834. <h5 class="overrides">Overrides</h5>
  2835. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseLeave_Terminal_Gui_MouseEvent_">Responder.OnMouseLeave(MouseEvent)</a></div>
  2836. <a id="Terminal_Gui_View_OnRemoved_" data-uid="Terminal.Gui.View.OnRemoved*"></a>
  2837. <h4 id="Terminal_Gui_View_OnRemoved_Terminal_Gui_View_" data-uid="Terminal.Gui.View.OnRemoved(Terminal.Gui.View)">OnRemoved(View)</h4>
  2838. <div class="markdown level1 summary">
  2839. Method invoked when a subview is being removed from this view.
  2840. </div>
  2841. <div class="markdown level1 conceptual"></div>
  2842. <h5 class="decalaration">Declaration</h5>
  2843. <div class="codewrapper">
  2844. <pre><code class="lang-csharp hljs">public virtual void OnRemoved(View view)</code></pre>
  2845. </div>
  2846. <h5 class="parameters">Parameters</h5>
  2847. <table class="table table-bordered table-striped table-condensed">
  2848. <thead>
  2849. <tr>
  2850. <th>Type</th>
  2851. <th>Name</th>
  2852. <th>Description</th>
  2853. </tr>
  2854. </thead>
  2855. <tbody>
  2856. <tr>
  2857. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2858. <td><span class="parametername">view</span></td>
  2859. <td>The subview being removed.</td>
  2860. </tr>
  2861. </tbody>
  2862. </table>
  2863. <a id="Terminal_Gui_View_OnVisibleChanged_" data-uid="Terminal.Gui.View.OnVisibleChanged*"></a>
  2864. <h4 id="Terminal_Gui_View_OnVisibleChanged" data-uid="Terminal.Gui.View.OnVisibleChanged">OnVisibleChanged()</h4>
  2865. <div class="markdown level1 summary"></div>
  2866. <div class="markdown level1 conceptual"></div>
  2867. <h5 class="decalaration">Declaration</h5>
  2868. <div class="codewrapper">
  2869. <pre><code class="lang-csharp hljs">public override void OnVisibleChanged()</code></pre>
  2870. </div>
  2871. <h5 class="overrides">Overrides</h5>
  2872. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnVisibleChanged">Responder.OnVisibleChanged()</a></div>
  2873. <a id="Terminal_Gui_View_PositionCursor_" data-uid="Terminal.Gui.View.PositionCursor*"></a>
  2874. <h4 id="Terminal_Gui_View_PositionCursor" data-uid="Terminal.Gui.View.PositionCursor">PositionCursor()</h4>
  2875. <div class="markdown level1 summary">
  2876. Positions the cursor in the right position based on the currently focused view in the chain.
  2877. </div>
  2878. <div class="markdown level1 conceptual"></div>
  2879. <h5 class="decalaration">Declaration</h5>
  2880. <div class="codewrapper">
  2881. <pre><code class="lang-csharp hljs">public virtual void PositionCursor()</code></pre>
  2882. </div>
  2883. <a id="Terminal_Gui_View_ProcessColdKey_" data-uid="Terminal.Gui.View.ProcessColdKey*"></a>
  2884. <h4 id="Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  2885. <div class="markdown level1 summary"></div>
  2886. <div class="markdown level1 conceptual"></div>
  2887. <h5 class="decalaration">Declaration</h5>
  2888. <div class="codewrapper">
  2889. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey(KeyEvent keyEvent)</code></pre>
  2890. </div>
  2891. <h5 class="parameters">Parameters</h5>
  2892. <table class="table table-bordered table-striped table-condensed">
  2893. <thead>
  2894. <tr>
  2895. <th>Type</th>
  2896. <th>Name</th>
  2897. <th>Description</th>
  2898. </tr>
  2899. </thead>
  2900. <tbody>
  2901. <tr>
  2902. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2903. <td><span class="parametername">keyEvent</span></td>
  2904. <td></td>
  2905. </tr>
  2906. </tbody>
  2907. </table>
  2908. <h5 class="returns">Returns</h5>
  2909. <table class="table table-bordered table-striped table-condensed">
  2910. <thead>
  2911. <tr>
  2912. <th>Type</th>
  2913. <th>Description</th>
  2914. </tr>
  2915. </thead>
  2916. <tbody>
  2917. <tr>
  2918. <td><span class="xref">System.Boolean</span></td>
  2919. <td></td>
  2920. </tr>
  2921. </tbody>
  2922. </table>
  2923. <h5 class="overrides">Overrides</h5>
  2924. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessColdKey_Terminal_Gui_KeyEvent_">Responder.ProcessColdKey(KeyEvent)</a></div>
  2925. <a id="Terminal_Gui_View_ProcessHotKey_" data-uid="Terminal.Gui.View.ProcessHotKey*"></a>
  2926. <h4 id="Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessHotKey(Terminal.Gui.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  2927. <div class="markdown level1 summary"></div>
  2928. <div class="markdown level1 conceptual"></div>
  2929. <h5 class="decalaration">Declaration</h5>
  2930. <div class="codewrapper">
  2931. <pre><code class="lang-csharp hljs">public override bool ProcessHotKey(KeyEvent keyEvent)</code></pre>
  2932. </div>
  2933. <h5 class="parameters">Parameters</h5>
  2934. <table class="table table-bordered table-striped table-condensed">
  2935. <thead>
  2936. <tr>
  2937. <th>Type</th>
  2938. <th>Name</th>
  2939. <th>Description</th>
  2940. </tr>
  2941. </thead>
  2942. <tbody>
  2943. <tr>
  2944. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2945. <td><span class="parametername">keyEvent</span></td>
  2946. <td></td>
  2947. </tr>
  2948. </tbody>
  2949. </table>
  2950. <h5 class="returns">Returns</h5>
  2951. <table class="table table-bordered table-striped table-condensed">
  2952. <thead>
  2953. <tr>
  2954. <th>Type</th>
  2955. <th>Description</th>
  2956. </tr>
  2957. </thead>
  2958. <tbody>
  2959. <tr>
  2960. <td><span class="xref">System.Boolean</span></td>
  2961. <td></td>
  2962. </tr>
  2963. </tbody>
  2964. </table>
  2965. <h5 class="overrides">Overrides</h5>
  2966. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessHotKey_Terminal_Gui_KeyEvent_">Responder.ProcessHotKey(KeyEvent)</a></div>
  2967. <a id="Terminal_Gui_View_ProcessKey_" data-uid="Terminal.Gui.View.ProcessKey*"></a>
  2968. <h4 id="Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  2969. <div class="markdown level1 summary"></div>
  2970. <div class="markdown level1 conceptual"></div>
  2971. <h5 class="decalaration">Declaration</h5>
  2972. <div class="codewrapper">
  2973. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  2974. </div>
  2975. <h5 class="parameters">Parameters</h5>
  2976. <table class="table table-bordered table-striped table-condensed">
  2977. <thead>
  2978. <tr>
  2979. <th>Type</th>
  2980. <th>Name</th>
  2981. <th>Description</th>
  2982. </tr>
  2983. </thead>
  2984. <tbody>
  2985. <tr>
  2986. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2987. <td><span class="parametername">keyEvent</span></td>
  2988. <td></td>
  2989. </tr>
  2990. </tbody>
  2991. </table>
  2992. <h5 class="returns">Returns</h5>
  2993. <table class="table table-bordered table-striped table-condensed">
  2994. <thead>
  2995. <tr>
  2996. <th>Type</th>
  2997. <th>Description</th>
  2998. </tr>
  2999. </thead>
  3000. <tbody>
  3001. <tr>
  3002. <td><span class="xref">System.Boolean</span></td>
  3003. <td></td>
  3004. </tr>
  3005. </tbody>
  3006. </table>
  3007. <h5 class="overrides">Overrides</h5>
  3008. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessKey_Terminal_Gui_KeyEvent_">Responder.ProcessKey(KeyEvent)</a></div>
  3009. <a id="Terminal_Gui_View_Redraw_" data-uid="Terminal.Gui.View.Redraw*"></a>
  3010. <h4 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  3011. <div class="markdown level1 summary">
  3012. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  3013. </div>
  3014. <div class="markdown level1 conceptual"></div>
  3015. <h5 class="decalaration">Declaration</h5>
  3016. <div class="codewrapper">
  3017. <pre><code class="lang-csharp hljs">public virtual void Redraw(Rect bounds)</code></pre>
  3018. </div>
  3019. <h5 class="parameters">Parameters</h5>
  3020. <table class="table table-bordered table-striped table-condensed">
  3021. <thead>
  3022. <tr>
  3023. <th>Type</th>
  3024. <th>Name</th>
  3025. <th>Description</th>
  3026. </tr>
  3027. </thead>
  3028. <tbody>
  3029. <tr>
  3030. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  3031. <td><span class="parametername">bounds</span></td>
  3032. <td>The bounds (view-relative region) to redraw.</td>
  3033. </tr>
  3034. </tbody>
  3035. </table>
  3036. <h5 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  3037. <div class="markdown level1 remarks">
  3038. <p>
  3039. 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).
  3040. </p>
  3041. <p>
  3042. Views should set the color that they want to use on entry, as otherwise this will inherit
  3043. the last color that was set globally on the driver.
  3044. </p>
  3045. <p>
  3046. 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
  3047. larger than the <code>region</code> parameter.
  3048. </p>
  3049. </div>
  3050. <a id="Terminal_Gui_View_Remove_" data-uid="Terminal.Gui.View.Remove*"></a>
  3051. <h4 id="Terminal_Gui_View_Remove_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Remove(Terminal.Gui.View)">Remove(View)</h4>
  3052. <div class="markdown level1 summary">
  3053. Removes a subview added via <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> or <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">Add(View[])</a> from this View.
  3054. </div>
  3055. <div class="markdown level1 conceptual"></div>
  3056. <h5 class="decalaration">Declaration</h5>
  3057. <div class="codewrapper">
  3058. <pre><code class="lang-csharp hljs">public virtual void Remove(View view)</code></pre>
  3059. </div>
  3060. <h5 class="parameters">Parameters</h5>
  3061. <table class="table table-bordered table-striped table-condensed">
  3062. <thead>
  3063. <tr>
  3064. <th>Type</th>
  3065. <th>Name</th>
  3066. <th>Description</th>
  3067. </tr>
  3068. </thead>
  3069. <tbody>
  3070. <tr>
  3071. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  3072. <td><span class="parametername">view</span></td>
  3073. <td></td>
  3074. </tr>
  3075. </tbody>
  3076. </table>
  3077. <h5 id="Terminal_Gui_View_Remove_Terminal_Gui_View__remarks">Remarks</h5>
  3078. <div class="markdown level1 remarks">
  3079. </div>
  3080. <a id="Terminal_Gui_View_RemoveAll_" data-uid="Terminal.Gui.View.RemoveAll*"></a>
  3081. <h4 id="Terminal_Gui_View_RemoveAll" data-uid="Terminal.Gui.View.RemoveAll">RemoveAll()</h4>
  3082. <div class="markdown level1 summary">
  3083. Removes all subviews (children) added via <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> or <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">Add(View[])</a> from this View.
  3084. </div>
  3085. <div class="markdown level1 conceptual"></div>
  3086. <h5 class="decalaration">Declaration</h5>
  3087. <div class="codewrapper">
  3088. <pre><code class="lang-csharp hljs">public virtual void RemoveAll()</code></pre>
  3089. </div>
  3090. <a id="Terminal_Gui_View_ReplaceKeyBinding_" data-uid="Terminal.Gui.View.ReplaceKeyBinding*"></a>
  3091. <h4 id="Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_" data-uid="Terminal.Gui.View.ReplaceKeyBinding(Terminal.Gui.Key,Terminal.Gui.Key)">ReplaceKeyBinding(Key, Key)</h4>
  3092. <div class="markdown level1 summary">
  3093. Replaces a key combination already bound to <a class="xref" href="Terminal.Gui.Command.html">Command</a>.
  3094. </div>
  3095. <div class="markdown level1 conceptual"></div>
  3096. <h5 class="decalaration">Declaration</h5>
  3097. <div class="codewrapper">
  3098. <pre><code class="lang-csharp hljs">protected void ReplaceKeyBinding(Key fromKey, Key toKey)</code></pre>
  3099. </div>
  3100. <h5 class="parameters">Parameters</h5>
  3101. <table class="table table-bordered table-striped table-condensed">
  3102. <thead>
  3103. <tr>
  3104. <th>Type</th>
  3105. <th>Name</th>
  3106. <th>Description</th>
  3107. </tr>
  3108. </thead>
  3109. <tbody>
  3110. <tr>
  3111. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  3112. <td><span class="parametername">fromKey</span></td>
  3113. <td>The key to be replaced.</td>
  3114. </tr>
  3115. <tr>
  3116. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  3117. <td><span class="parametername">toKey</span></td>
  3118. <td>The new key to be used.</td>
  3119. </tr>
  3120. </tbody>
  3121. </table>
  3122. <a id="Terminal_Gui_View_ScreenToView_" data-uid="Terminal.Gui.View.ScreenToView*"></a>
  3123. <h4 id="Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_" data-uid="Terminal.Gui.View.ScreenToView(System.Int32,System.Int32)">ScreenToView(Int32, Int32)</h4>
  3124. <div class="markdown level1 summary">
  3125. Converts a point from screen-relative coordinates to view-relative coordinates.
  3126. </div>
  3127. <div class="markdown level1 conceptual"></div>
  3128. <h5 class="decalaration">Declaration</h5>
  3129. <div class="codewrapper">
  3130. <pre><code class="lang-csharp hljs">public Point ScreenToView(int x, int y)</code></pre>
  3131. </div>
  3132. <h5 class="parameters">Parameters</h5>
  3133. <table class="table table-bordered table-striped table-condensed">
  3134. <thead>
  3135. <tr>
  3136. <th>Type</th>
  3137. <th>Name</th>
  3138. <th>Description</th>
  3139. </tr>
  3140. </thead>
  3141. <tbody>
  3142. <tr>
  3143. <td><span class="xref">System.Int32</span></td>
  3144. <td><span class="parametername">x</span></td>
  3145. <td>X screen-coordinate point.</td>
  3146. </tr>
  3147. <tr>
  3148. <td><span class="xref">System.Int32</span></td>
  3149. <td><span class="parametername">y</span></td>
  3150. <td>Y screen-coordinate point.</td>
  3151. </tr>
  3152. </tbody>
  3153. </table>
  3154. <h5 class="returns">Returns</h5>
  3155. <table class="table table-bordered table-striped table-condensed">
  3156. <thead>
  3157. <tr>
  3158. <th>Type</th>
  3159. <th>Description</th>
  3160. </tr>
  3161. </thead>
  3162. <tbody>
  3163. <tr>
  3164. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  3165. <td>The mapped point.</td>
  3166. </tr>
  3167. </tbody>
  3168. </table>
  3169. <a id="Terminal_Gui_View_SendSubviewBackwards_" data-uid="Terminal.Gui.View.SendSubviewBackwards*"></a>
  3170. <h4 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewBackwards(Terminal.Gui.View)">SendSubviewBackwards(View)</h4>
  3171. <div class="markdown level1 summary">
  3172. Moves the subview backwards in the hierarchy, only one step
  3173. </div>
  3174. <div class="markdown level1 conceptual"></div>
  3175. <h5 class="decalaration">Declaration</h5>
  3176. <div class="codewrapper">
  3177. <pre><code class="lang-csharp hljs">public void SendSubviewBackwards(View subview)</code></pre>
  3178. </div>
  3179. <h5 class="parameters">Parameters</h5>
  3180. <table class="table table-bordered table-striped table-condensed">
  3181. <thead>
  3182. <tr>
  3183. <th>Type</th>
  3184. <th>Name</th>
  3185. <th>Description</th>
  3186. </tr>
  3187. </thead>
  3188. <tbody>
  3189. <tr>
  3190. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  3191. <td><span class="parametername">subview</span></td>
  3192. <td>The subview to send backwards</td>
  3193. </tr>
  3194. </tbody>
  3195. </table>
  3196. <h5 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View__remarks">Remarks</h5>
  3197. <div class="markdown level1 remarks">
  3198. If you want to send the view all the way to the back use SendSubviewToBack.
  3199. </div>
  3200. <a id="Terminal_Gui_View_SendSubviewToBack_" data-uid="Terminal.Gui.View.SendSubviewToBack*"></a>
  3201. <h4 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewToBack(Terminal.Gui.View)">SendSubviewToBack(View)</h4>
  3202. <div class="markdown level1 summary">
  3203. Sends the specified subview to the front so it is the first view drawn
  3204. </div>
  3205. <div class="markdown level1 conceptual"></div>
  3206. <h5 class="decalaration">Declaration</h5>
  3207. <div class="codewrapper">
  3208. <pre><code class="lang-csharp hljs">public void SendSubviewToBack(View subview)</code></pre>
  3209. </div>
  3210. <h5 class="parameters">Parameters</h5>
  3211. <table class="table table-bordered table-striped table-condensed">
  3212. <thead>
  3213. <tr>
  3214. <th>Type</th>
  3215. <th>Name</th>
  3216. <th>Description</th>
  3217. </tr>
  3218. </thead>
  3219. <tbody>
  3220. <tr>
  3221. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  3222. <td><span class="parametername">subview</span></td>
  3223. <td>The subview to send to the front</td>
  3224. </tr>
  3225. </tbody>
  3226. </table>
  3227. <h5 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View__remarks">Remarks</h5>
  3228. <div class="markdown level1 remarks">
  3229. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">BringSubviewToFront(View)</a>.
  3230. </div>
  3231. <a id="Terminal_Gui_View_SetChildNeedsDisplay_" data-uid="Terminal.Gui.View.SetChildNeedsDisplay*"></a>
  3232. <h4 id="Terminal_Gui_View_SetChildNeedsDisplay" data-uid="Terminal.Gui.View.SetChildNeedsDisplay">SetChildNeedsDisplay()</h4>
  3233. <div class="markdown level1 summary">
  3234. Indicates that any child views (in the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> list) need to be repainted.
  3235. </div>
  3236. <div class="markdown level1 conceptual"></div>
  3237. <h5 class="decalaration">Declaration</h5>
  3238. <div class="codewrapper">
  3239. <pre><code class="lang-csharp hljs">public void SetChildNeedsDisplay()</code></pre>
  3240. </div>
  3241. <a id="Terminal_Gui_View_SetClip_" data-uid="Terminal.Gui.View.SetClip*"></a>
  3242. <h4 id="Terminal_Gui_View_SetClip_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetClip(Terminal.Gui.Rect)">SetClip(Rect)</h4>
  3243. <div class="markdown level1 summary">
  3244. Sets the clip region to the specified view-relative region.
  3245. </div>
  3246. <div class="markdown level1 conceptual"></div>
  3247. <h5 class="decalaration">Declaration</h5>
  3248. <div class="codewrapper">
  3249. <pre><code class="lang-csharp hljs">public Rect SetClip(Rect region)</code></pre>
  3250. </div>
  3251. <h5 class="parameters">Parameters</h5>
  3252. <table class="table table-bordered table-striped table-condensed">
  3253. <thead>
  3254. <tr>
  3255. <th>Type</th>
  3256. <th>Name</th>
  3257. <th>Description</th>
  3258. </tr>
  3259. </thead>
  3260. <tbody>
  3261. <tr>
  3262. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  3263. <td><span class="parametername">region</span></td>
  3264. <td>View-relative clip region.</td>
  3265. </tr>
  3266. </tbody>
  3267. </table>
  3268. <h5 class="returns">Returns</h5>
  3269. <table class="table table-bordered table-striped table-condensed">
  3270. <thead>
  3271. <tr>
  3272. <th>Type</th>
  3273. <th>Description</th>
  3274. </tr>
  3275. </thead>
  3276. <tbody>
  3277. <tr>
  3278. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  3279. <td>The previous screen-relative clip region.</td>
  3280. </tr>
  3281. </tbody>
  3282. </table>
  3283. <a id="Terminal_Gui_View_SetFocus_" data-uid="Terminal.Gui.View.SetFocus*"></a>
  3284. <h4 id="Terminal_Gui_View_SetFocus" data-uid="Terminal.Gui.View.SetFocus">SetFocus()</h4>
  3285. <div class="markdown level1 summary">
  3286. Causes the specified view and the entire parent hierarchy to have the focused order updated.
  3287. </div>
  3288. <div class="markdown level1 conceptual"></div>
  3289. <h5 class="decalaration">Declaration</h5>
  3290. <div class="codewrapper">
  3291. <pre><code class="lang-csharp hljs">public void SetFocus()</code></pre>
  3292. </div>
  3293. <a id="Terminal_Gui_View_SetHeight_" data-uid="Terminal.Gui.View.SetHeight*"></a>
  3294. <h4 id="Terminal_Gui_View_SetHeight_System_Int32_System_Int32__" data-uid="Terminal.Gui.View.SetHeight(System.Int32,System.Int32@)">SetHeight(Int32, out Int32)</h4>
  3295. <div class="markdown level1 summary">
  3296. Calculate the height based on the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> settings.
  3297. </div>
  3298. <div class="markdown level1 conceptual"></div>
  3299. <h5 class="decalaration">Declaration</h5>
  3300. <div class="codewrapper">
  3301. <pre><code class="lang-csharp hljs">public bool SetHeight(int desiredHeight, out int resultHeight)</code></pre>
  3302. </div>
  3303. <h5 class="parameters">Parameters</h5>
  3304. <table class="table table-bordered table-striped table-condensed">
  3305. <thead>
  3306. <tr>
  3307. <th>Type</th>
  3308. <th>Name</th>
  3309. <th>Description</th>
  3310. </tr>
  3311. </thead>
  3312. <tbody>
  3313. <tr>
  3314. <td><span class="xref">System.Int32</span></td>
  3315. <td><span class="parametername">desiredHeight</span></td>
  3316. <td>The desired height.</td>
  3317. </tr>
  3318. <tr>
  3319. <td><span class="xref">System.Int32</span></td>
  3320. <td><span class="parametername">resultHeight</span></td>
  3321. <td>The real result height.</td>
  3322. </tr>
  3323. </tbody>
  3324. </table>
  3325. <h5 class="returns">Returns</h5>
  3326. <table class="table table-bordered table-striped table-condensed">
  3327. <thead>
  3328. <tr>
  3329. <th>Type</th>
  3330. <th>Description</th>
  3331. </tr>
  3332. </thead>
  3333. <tbody>
  3334. <tr>
  3335. <td><span class="xref">System.Boolean</span></td>
  3336. <td><code>true</code> if the height can be directly assigned, <code>false</code> otherwise.</td>
  3337. </tr>
  3338. </tbody>
  3339. </table>
  3340. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  3341. <h4 id="Terminal_Gui_View_SetNeedsDisplay" data-uid="Terminal.Gui.View.SetNeedsDisplay">SetNeedsDisplay()</h4>
  3342. <div class="markdown level1 summary">
  3343. Sets a flag indicating this view needs to be redisplayed because its state has changed.
  3344. </div>
  3345. <div class="markdown level1 conceptual"></div>
  3346. <h5 class="decalaration">Declaration</h5>
  3347. <div class="codewrapper">
  3348. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay()</code></pre>
  3349. </div>
  3350. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  3351. <h4 id="Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetNeedsDisplay(Terminal.Gui.Rect)">SetNeedsDisplay(Rect)</h4>
  3352. <div class="markdown level1 summary">
  3353. Flags the view-relative region on this View as needing to be repainted.
  3354. </div>
  3355. <div class="markdown level1 conceptual"></div>
  3356. <h5 class="decalaration">Declaration</h5>
  3357. <div class="codewrapper">
  3358. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay(Rect region)</code></pre>
  3359. </div>
  3360. <h5 class="parameters">Parameters</h5>
  3361. <table class="table table-bordered table-striped table-condensed">
  3362. <thead>
  3363. <tr>
  3364. <th>Type</th>
  3365. <th>Name</th>
  3366. <th>Description</th>
  3367. </tr>
  3368. </thead>
  3369. <tbody>
  3370. <tr>
  3371. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  3372. <td><span class="parametername">region</span></td>
  3373. <td>The view-relative region that must be flagged for repaint.</td>
  3374. </tr>
  3375. </tbody>
  3376. </table>
  3377. <a id="Terminal_Gui_View_SetWidth_" data-uid="Terminal.Gui.View.SetWidth*"></a>
  3378. <h4 id="Terminal_Gui_View_SetWidth_System_Int32_System_Int32__" data-uid="Terminal.Gui.View.SetWidth(System.Int32,System.Int32@)">SetWidth(Int32, out Int32)</h4>
  3379. <div class="markdown level1 summary">
  3380. Calculate the width based on the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a> settings.
  3381. </div>
  3382. <div class="markdown level1 conceptual"></div>
  3383. <h5 class="decalaration">Declaration</h5>
  3384. <div class="codewrapper">
  3385. <pre><code class="lang-csharp hljs">public bool SetWidth(int desiredWidth, out int resultWidth)</code></pre>
  3386. </div>
  3387. <h5 class="parameters">Parameters</h5>
  3388. <table class="table table-bordered table-striped table-condensed">
  3389. <thead>
  3390. <tr>
  3391. <th>Type</th>
  3392. <th>Name</th>
  3393. <th>Description</th>
  3394. </tr>
  3395. </thead>
  3396. <tbody>
  3397. <tr>
  3398. <td><span class="xref">System.Int32</span></td>
  3399. <td><span class="parametername">desiredWidth</span></td>
  3400. <td>The desired width.</td>
  3401. </tr>
  3402. <tr>
  3403. <td><span class="xref">System.Int32</span></td>
  3404. <td><span class="parametername">resultWidth</span></td>
  3405. <td>The real result width.</td>
  3406. </tr>
  3407. </tbody>
  3408. </table>
  3409. <h5 class="returns">Returns</h5>
  3410. <table class="table table-bordered table-striped table-condensed">
  3411. <thead>
  3412. <tr>
  3413. <th>Type</th>
  3414. <th>Description</th>
  3415. </tr>
  3416. </thead>
  3417. <tbody>
  3418. <tr>
  3419. <td><span class="xref">System.Boolean</span></td>
  3420. <td><code>true</code> if the width can be directly assigned, <code>false</code> otherwise.</td>
  3421. </tr>
  3422. </tbody>
  3423. </table>
  3424. <a id="Terminal_Gui_View_ToString_" data-uid="Terminal.Gui.View.ToString*"></a>
  3425. <h4 id="Terminal_Gui_View_ToString" data-uid="Terminal.Gui.View.ToString">ToString()</h4>
  3426. <div class="markdown level1 summary">
  3427. Pretty prints the View
  3428. </div>
  3429. <div class="markdown level1 conceptual"></div>
  3430. <h5 class="decalaration">Declaration</h5>
  3431. <div class="codewrapper">
  3432. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  3433. </div>
  3434. <h5 class="returns">Returns</h5>
  3435. <table class="table table-bordered table-striped table-condensed">
  3436. <thead>
  3437. <tr>
  3438. <th>Type</th>
  3439. <th>Description</th>
  3440. </tr>
  3441. </thead>
  3442. <tbody>
  3443. <tr>
  3444. <td><span class="xref">System.String</span></td>
  3445. <td></td>
  3446. </tr>
  3447. </tbody>
  3448. </table>
  3449. <h5 class="overrides">Overrides</h5>
  3450. <div><span class="xref">System.Object.ToString()</span></div>
  3451. <h3 id="events">Events
  3452. </h3>
  3453. <h4 id="Terminal_Gui_View_Added" data-uid="Terminal.Gui.View.Added">Added</h4>
  3454. <div class="markdown level1 summary">
  3455. Event fired when a subview is being added to this view.
  3456. </div>
  3457. <div class="markdown level1 conceptual"></div>
  3458. <h5 class="decalaration">Declaration</h5>
  3459. <div class="codewrapper">
  3460. <pre><code class="lang-csharp hljs">public event Action&lt;View&gt; Added</code></pre>
  3461. </div>
  3462. <h5 class="eventType">Event Type</h5>
  3463. <table class="table table-bordered table-striped table-condensed">
  3464. <thead>
  3465. <tr>
  3466. <th>Type</th>
  3467. <th>Description</th>
  3468. </tr>
  3469. </thead>
  3470. <tbody>
  3471. <tr>
  3472. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  3473. <td></td>
  3474. </tr>
  3475. </tbody>
  3476. </table>
  3477. <h4 id="Terminal_Gui_View_CanFocusChanged" data-uid="Terminal.Gui.View.CanFocusChanged">CanFocusChanged</h4>
  3478. <div class="markdown level1 summary">
  3479. Event fired when the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">CanFocus</a> value is being changed.
  3480. </div>
  3481. <div class="markdown level1 conceptual"></div>
  3482. <h5 class="decalaration">Declaration</h5>
  3483. <div class="codewrapper">
  3484. <pre><code class="lang-csharp hljs">public event Action CanFocusChanged</code></pre>
  3485. </div>
  3486. <h5 class="eventType">Event Type</h5>
  3487. <table class="table table-bordered table-striped table-condensed">
  3488. <thead>
  3489. <tr>
  3490. <th>Type</th>
  3491. <th>Description</th>
  3492. </tr>
  3493. </thead>
  3494. <tbody>
  3495. <tr>
  3496. <td><span class="xref">System.Action</span></td>
  3497. <td></td>
  3498. </tr>
  3499. </tbody>
  3500. </table>
  3501. <h4 id="Terminal_Gui_View_DrawContent" data-uid="Terminal.Gui.View.DrawContent">DrawContent</h4>
  3502. <div class="markdown level1 summary">
  3503. Event invoked when the content area of the View is to be drawn.
  3504. </div>
  3505. <div class="markdown level1 conceptual"></div>
  3506. <h5 class="decalaration">Declaration</h5>
  3507. <div class="codewrapper">
  3508. <pre><code class="lang-csharp hljs">public event Action&lt;Rect&gt; DrawContent</code></pre>
  3509. </div>
  3510. <h5 class="eventType">Event Type</h5>
  3511. <table class="table table-bordered table-striped table-condensed">
  3512. <thead>
  3513. <tr>
  3514. <th>Type</th>
  3515. <th>Description</th>
  3516. </tr>
  3517. </thead>
  3518. <tbody>
  3519. <tr>
  3520. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Rect.html">Rect</a>&gt;</td>
  3521. <td></td>
  3522. </tr>
  3523. </tbody>
  3524. </table>
  3525. <h5 id="Terminal_Gui_View_DrawContent_remarks">Remarks</h5>
  3526. <div class="markdown level1 remarks">
  3527. <p>
  3528. Will be invoked before any subviews added with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> have been drawn.
  3529. </p>
  3530. <p>
  3531. Rect provides the view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  3532. </p>
  3533. </div>
  3534. <h4 id="Terminal_Gui_View_DrawContentComplete" data-uid="Terminal.Gui.View.DrawContentComplete">DrawContentComplete</h4>
  3535. <div class="markdown level1 summary">
  3536. Event invoked when the content area of the View is completed drawing.
  3537. </div>
  3538. <div class="markdown level1 conceptual"></div>
  3539. <h5 class="decalaration">Declaration</h5>
  3540. <div class="codewrapper">
  3541. <pre><code class="lang-csharp hljs">public event Action&lt;Rect&gt; DrawContentComplete</code></pre>
  3542. </div>
  3543. <h5 class="eventType">Event Type</h5>
  3544. <table class="table table-bordered table-striped table-condensed">
  3545. <thead>
  3546. <tr>
  3547. <th>Type</th>
  3548. <th>Description</th>
  3549. </tr>
  3550. </thead>
  3551. <tbody>
  3552. <tr>
  3553. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Rect.html">Rect</a>&gt;</td>
  3554. <td></td>
  3555. </tr>
  3556. </tbody>
  3557. </table>
  3558. <h5 id="Terminal_Gui_View_DrawContentComplete_remarks">Remarks</h5>
  3559. <div class="markdown level1 remarks">
  3560. <p>
  3561. Will be invoked after any subviews removed with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> have been completed drawing.
  3562. </p>
  3563. <p>
  3564. Rect provides the view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  3565. </p>
  3566. </div>
  3567. <h4 id="Terminal_Gui_View_EnabledChanged" data-uid="Terminal.Gui.View.EnabledChanged">EnabledChanged</h4>
  3568. <div class="markdown level1 summary">
  3569. Event fired when the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">Enabled</a> value is being changed.
  3570. </div>
  3571. <div class="markdown level1 conceptual"></div>
  3572. <h5 class="decalaration">Declaration</h5>
  3573. <div class="codewrapper">
  3574. <pre><code class="lang-csharp hljs">public event Action EnabledChanged</code></pre>
  3575. </div>
  3576. <h5 class="eventType">Event Type</h5>
  3577. <table class="table table-bordered table-striped table-condensed">
  3578. <thead>
  3579. <tr>
  3580. <th>Type</th>
  3581. <th>Description</th>
  3582. </tr>
  3583. </thead>
  3584. <tbody>
  3585. <tr>
  3586. <td><span class="xref">System.Action</span></td>
  3587. <td></td>
  3588. </tr>
  3589. </tbody>
  3590. </table>
  3591. <h4 id="Terminal_Gui_View_Enter" data-uid="Terminal.Gui.View.Enter">Enter</h4>
  3592. <div class="markdown level1 summary">
  3593. Event fired when the view gets focus.
  3594. </div>
  3595. <div class="markdown level1 conceptual"></div>
  3596. <h5 class="decalaration">Declaration</h5>
  3597. <div class="codewrapper">
  3598. <pre><code class="lang-csharp hljs">public event Action&lt;View.FocusEventArgs&gt; Enter</code></pre>
  3599. </div>
  3600. <h5 class="eventType">Event Type</h5>
  3601. <table class="table table-bordered table-striped table-condensed">
  3602. <thead>
  3603. <tr>
  3604. <th>Type</th>
  3605. <th>Description</th>
  3606. </tr>
  3607. </thead>
  3608. <tbody>
  3609. <tr>
  3610. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.FocusEventArgs.html">View.FocusEventArgs</a>&gt;</td>
  3611. <td></td>
  3612. </tr>
  3613. </tbody>
  3614. </table>
  3615. <h4 id="Terminal_Gui_View_HotKeyChanged" data-uid="Terminal.Gui.View.HotKeyChanged">HotKeyChanged</h4>
  3616. <div class="markdown level1 summary">
  3617. Event invoked when the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">HotKey</a> is changed.
  3618. </div>
  3619. <div class="markdown level1 conceptual"></div>
  3620. <h5 class="decalaration">Declaration</h5>
  3621. <div class="codewrapper">
  3622. <pre><code class="lang-csharp hljs">public event Action&lt;Key&gt; HotKeyChanged</code></pre>
  3623. </div>
  3624. <h5 class="eventType">Event Type</h5>
  3625. <table class="table table-bordered table-striped table-condensed">
  3626. <thead>
  3627. <tr>
  3628. <th>Type</th>
  3629. <th>Description</th>
  3630. </tr>
  3631. </thead>
  3632. <tbody>
  3633. <tr>
  3634. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Key.html">Key</a>&gt;</td>
  3635. <td></td>
  3636. </tr>
  3637. </tbody>
  3638. </table>
  3639. <h4 id="Terminal_Gui_View_Initialized" data-uid="Terminal.Gui.View.Initialized">Initialized</h4>
  3640. <div class="markdown level1 summary">
  3641. Event called only once when the <a class="xref" href="Terminal.Gui.View.html">View</a> is being initialized for the first time.
  3642. Allows configurations and assignments to be performed before the <a class="xref" href="Terminal.Gui.View.html">View</a> being shown.
  3643. This derived from <span class="xref">System.ComponentModel.ISupportInitializeNotification</span> to allow notify all the views that are being initialized.
  3644. </div>
  3645. <div class="markdown level1 conceptual"></div>
  3646. <h5 class="decalaration">Declaration</h5>
  3647. <div class="codewrapper">
  3648. <pre><code class="lang-csharp hljs">public event EventHandler Initialized</code></pre>
  3649. </div>
  3650. <h5 class="eventType">Event Type</h5>
  3651. <table class="table table-bordered table-striped table-condensed">
  3652. <thead>
  3653. <tr>
  3654. <th>Type</th>
  3655. <th>Description</th>
  3656. </tr>
  3657. </thead>
  3658. <tbody>
  3659. <tr>
  3660. <td><span class="xref">System.EventHandler</span></td>
  3661. <td></td>
  3662. </tr>
  3663. </tbody>
  3664. </table>
  3665. <h4 id="Terminal_Gui_View_KeyDown" data-uid="Terminal.Gui.View.KeyDown">KeyDown</h4>
  3666. <div class="markdown level1 summary">
  3667. Invoked when a key is pressed
  3668. </div>
  3669. <div class="markdown level1 conceptual"></div>
  3670. <h5 class="decalaration">Declaration</h5>
  3671. <div class="codewrapper">
  3672. <pre><code class="lang-csharp hljs">public event Action&lt;View.KeyEventEventArgs&gt; KeyDown</code></pre>
  3673. </div>
  3674. <h5 class="eventType">Event Type</h5>
  3675. <table class="table table-bordered table-striped table-condensed">
  3676. <thead>
  3677. <tr>
  3678. <th>Type</th>
  3679. <th>Description</th>
  3680. </tr>
  3681. </thead>
  3682. <tbody>
  3683. <tr>
  3684. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  3685. <td></td>
  3686. </tr>
  3687. </tbody>
  3688. </table>
  3689. <h4 id="Terminal_Gui_View_KeyPress" data-uid="Terminal.Gui.View.KeyPress">KeyPress</h4>
  3690. <div class="markdown level1 summary">
  3691. Invoked when a character key is pressed and occurs after the key up event.
  3692. </div>
  3693. <div class="markdown level1 conceptual"></div>
  3694. <h5 class="decalaration">Declaration</h5>
  3695. <div class="codewrapper">
  3696. <pre><code class="lang-csharp hljs">public event Action&lt;View.KeyEventEventArgs&gt; KeyPress</code></pre>
  3697. </div>
  3698. <h5 class="eventType">Event Type</h5>
  3699. <table class="table table-bordered table-striped table-condensed">
  3700. <thead>
  3701. <tr>
  3702. <th>Type</th>
  3703. <th>Description</th>
  3704. </tr>
  3705. </thead>
  3706. <tbody>
  3707. <tr>
  3708. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  3709. <td></td>
  3710. </tr>
  3711. </tbody>
  3712. </table>
  3713. <h4 id="Terminal_Gui_View_KeyUp" data-uid="Terminal.Gui.View.KeyUp">KeyUp</h4>
  3714. <div class="markdown level1 summary">
  3715. Invoked when a key is released
  3716. </div>
  3717. <div class="markdown level1 conceptual"></div>
  3718. <h5 class="decalaration">Declaration</h5>
  3719. <div class="codewrapper">
  3720. <pre><code class="lang-csharp hljs">public event Action&lt;View.KeyEventEventArgs&gt; KeyUp</code></pre>
  3721. </div>
  3722. <h5 class="eventType">Event Type</h5>
  3723. <table class="table table-bordered table-striped table-condensed">
  3724. <thead>
  3725. <tr>
  3726. <th>Type</th>
  3727. <th>Description</th>
  3728. </tr>
  3729. </thead>
  3730. <tbody>
  3731. <tr>
  3732. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  3733. <td></td>
  3734. </tr>
  3735. </tbody>
  3736. </table>
  3737. <h4 id="Terminal_Gui_View_LayoutComplete" data-uid="Terminal.Gui.View.LayoutComplete">LayoutComplete</h4>
  3738. <div class="markdown level1 summary">
  3739. Fired after the Views&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">LayoutSubviews()</a> method has completed.
  3740. </div>
  3741. <div class="markdown level1 conceptual"></div>
  3742. <h5 class="decalaration">Declaration</h5>
  3743. <div class="codewrapper">
  3744. <pre><code class="lang-csharp hljs">public event Action&lt;View.LayoutEventArgs&gt; LayoutComplete</code></pre>
  3745. </div>
  3746. <h5 class="eventType">Event Type</h5>
  3747. <table class="table table-bordered table-striped table-condensed">
  3748. <thead>
  3749. <tr>
  3750. <th>Type</th>
  3751. <th>Description</th>
  3752. </tr>
  3753. </thead>
  3754. <tbody>
  3755. <tr>
  3756. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.LayoutEventArgs.html">View.LayoutEventArgs</a>&gt;</td>
  3757. <td></td>
  3758. </tr>
  3759. </tbody>
  3760. </table>
  3761. <h5 id="Terminal_Gui_View_LayoutComplete_remarks">Remarks</h5>
  3762. <div class="markdown level1 remarks">
  3763. Subscribe to this event to perform tasks when the <a class="xref" href="Terminal.Gui.View.html">View</a> has been resized or the layout has otherwise changed.
  3764. </div>
  3765. <h4 id="Terminal_Gui_View_LayoutStarted" data-uid="Terminal.Gui.View.LayoutStarted">LayoutStarted</h4>
  3766. <div class="markdown level1 summary">
  3767. Fired after the Views&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">LayoutSubviews()</a> method has completed.
  3768. </div>
  3769. <div class="markdown level1 conceptual"></div>
  3770. <h5 class="decalaration">Declaration</h5>
  3771. <div class="codewrapper">
  3772. <pre><code class="lang-csharp hljs">public event Action&lt;View.LayoutEventArgs&gt; LayoutStarted</code></pre>
  3773. </div>
  3774. <h5 class="eventType">Event Type</h5>
  3775. <table class="table table-bordered table-striped table-condensed">
  3776. <thead>
  3777. <tr>
  3778. <th>Type</th>
  3779. <th>Description</th>
  3780. </tr>
  3781. </thead>
  3782. <tbody>
  3783. <tr>
  3784. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.LayoutEventArgs.html">View.LayoutEventArgs</a>&gt;</td>
  3785. <td></td>
  3786. </tr>
  3787. </tbody>
  3788. </table>
  3789. <h5 id="Terminal_Gui_View_LayoutStarted_remarks">Remarks</h5>
  3790. <div class="markdown level1 remarks">
  3791. Subscribe to this event to perform tasks when the <a class="xref" href="Terminal.Gui.View.html">View</a> has been resized or the layout has otherwise changed.
  3792. </div>
  3793. <h4 id="Terminal_Gui_View_Leave" data-uid="Terminal.Gui.View.Leave">Leave</h4>
  3794. <div class="markdown level1 summary">
  3795. Event fired when the view looses focus.
  3796. </div>
  3797. <div class="markdown level1 conceptual"></div>
  3798. <h5 class="decalaration">Declaration</h5>
  3799. <div class="codewrapper">
  3800. <pre><code class="lang-csharp hljs">public event Action&lt;View.FocusEventArgs&gt; Leave</code></pre>
  3801. </div>
  3802. <h5 class="eventType">Event Type</h5>
  3803. <table class="table table-bordered table-striped table-condensed">
  3804. <thead>
  3805. <tr>
  3806. <th>Type</th>
  3807. <th>Description</th>
  3808. </tr>
  3809. </thead>
  3810. <tbody>
  3811. <tr>
  3812. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.FocusEventArgs.html">View.FocusEventArgs</a>&gt;</td>
  3813. <td></td>
  3814. </tr>
  3815. </tbody>
  3816. </table>
  3817. <h4 id="Terminal_Gui_View_MouseClick" data-uid="Terminal.Gui.View.MouseClick">MouseClick</h4>
  3818. <div class="markdown level1 summary">
  3819. Event fired when a mouse event is generated.
  3820. </div>
  3821. <div class="markdown level1 conceptual"></div>
  3822. <h5 class="decalaration">Declaration</h5>
  3823. <div class="codewrapper">
  3824. <pre><code class="lang-csharp hljs">public event Action&lt;View.MouseEventArgs&gt; MouseClick</code></pre>
  3825. </div>
  3826. <h5 class="eventType">Event Type</h5>
  3827. <table class="table table-bordered table-striped table-condensed">
  3828. <thead>
  3829. <tr>
  3830. <th>Type</th>
  3831. <th>Description</th>
  3832. </tr>
  3833. </thead>
  3834. <tbody>
  3835. <tr>
  3836. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventArgs.html">View.MouseEventArgs</a>&gt;</td>
  3837. <td></td>
  3838. </tr>
  3839. </tbody>
  3840. </table>
  3841. <h4 id="Terminal_Gui_View_MouseEnter" data-uid="Terminal.Gui.View.MouseEnter">MouseEnter</h4>
  3842. <div class="markdown level1 summary">
  3843. Event fired when the view receives the mouse event for the first time.
  3844. </div>
  3845. <div class="markdown level1 conceptual"></div>
  3846. <h5 class="decalaration">Declaration</h5>
  3847. <div class="codewrapper">
  3848. <pre><code class="lang-csharp hljs">public event Action&lt;View.MouseEventArgs&gt; MouseEnter</code></pre>
  3849. </div>
  3850. <h5 class="eventType">Event Type</h5>
  3851. <table class="table table-bordered table-striped table-condensed">
  3852. <thead>
  3853. <tr>
  3854. <th>Type</th>
  3855. <th>Description</th>
  3856. </tr>
  3857. </thead>
  3858. <tbody>
  3859. <tr>
  3860. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventArgs.html">View.MouseEventArgs</a>&gt;</td>
  3861. <td></td>
  3862. </tr>
  3863. </tbody>
  3864. </table>
  3865. <h4 id="Terminal_Gui_View_MouseLeave" data-uid="Terminal.Gui.View.MouseLeave">MouseLeave</h4>
  3866. <div class="markdown level1 summary">
  3867. Event fired when the view receives a mouse event for the last time.
  3868. </div>
  3869. <div class="markdown level1 conceptual"></div>
  3870. <h5 class="decalaration">Declaration</h5>
  3871. <div class="codewrapper">
  3872. <pre><code class="lang-csharp hljs">public event Action&lt;View.MouseEventArgs&gt; MouseLeave</code></pre>
  3873. </div>
  3874. <h5 class="eventType">Event Type</h5>
  3875. <table class="table table-bordered table-striped table-condensed">
  3876. <thead>
  3877. <tr>
  3878. <th>Type</th>
  3879. <th>Description</th>
  3880. </tr>
  3881. </thead>
  3882. <tbody>
  3883. <tr>
  3884. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventArgs.html">View.MouseEventArgs</a>&gt;</td>
  3885. <td></td>
  3886. </tr>
  3887. </tbody>
  3888. </table>
  3889. <h4 id="Terminal_Gui_View_Removed" data-uid="Terminal.Gui.View.Removed">Removed</h4>
  3890. <div class="markdown level1 summary">
  3891. Event fired when a subview is being removed from this view.
  3892. </div>
  3893. <div class="markdown level1 conceptual"></div>
  3894. <h5 class="decalaration">Declaration</h5>
  3895. <div class="codewrapper">
  3896. <pre><code class="lang-csharp hljs">public event Action&lt;View&gt; Removed</code></pre>
  3897. </div>
  3898. <h5 class="eventType">Event Type</h5>
  3899. <table class="table table-bordered table-striped table-condensed">
  3900. <thead>
  3901. <tr>
  3902. <th>Type</th>
  3903. <th>Description</th>
  3904. </tr>
  3905. </thead>
  3906. <tbody>
  3907. <tr>
  3908. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  3909. <td></td>
  3910. </tr>
  3911. </tbody>
  3912. </table>
  3913. <h4 id="Terminal_Gui_View_VisibleChanged" data-uid="Terminal.Gui.View.VisibleChanged">VisibleChanged</h4>
  3914. <div class="markdown level1 summary">
  3915. Event fired when the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">Visible</a> value is being changed.
  3916. </div>
  3917. <div class="markdown level1 conceptual"></div>
  3918. <h5 class="decalaration">Declaration</h5>
  3919. <div class="codewrapper">
  3920. <pre><code class="lang-csharp hljs">public event Action VisibleChanged</code></pre>
  3921. </div>
  3922. <h5 class="eventType">Event Type</h5>
  3923. <table class="table table-bordered table-striped table-condensed">
  3924. <thead>
  3925. <tr>
  3926. <th>Type</th>
  3927. <th>Description</th>
  3928. </tr>
  3929. </thead>
  3930. <tbody>
  3931. <tr>
  3932. <td><span class="xref">System.Action</span></td>
  3933. <td></td>
  3934. </tr>
  3935. </tbody>
  3936. </table>
  3937. <h3 id="implements">Implements</h3>
  3938. <div>
  3939. <span class="xref">System.IDisposable</span>
  3940. </div>
  3941. <div>
  3942. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  3943. </div>
  3944. <div>
  3945. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  3946. </div>
  3947. </article>
  3948. </div>
  3949. <div class="hidden-sm col-md-2" role="complementary">
  3950. <div class="sideaffix">
  3951. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  3952. <h5>In This Article</h5>
  3953. <div></div>
  3954. </nav>
  3955. </div>
  3956. </div>
  3957. </div>
  3958. </div>
  3959. <footer>
  3960. <div class="grad-bottom"></div>
  3961. <div class="footer">
  3962. <div class="container">
  3963. <span class="pull-right">
  3964. <a href="#top">Back to top</a>
  3965. </span>
  3966. <span>Generated by <strong>DocFX</strong></span>
  3967. </div>
  3968. </div>
  3969. </footer>
  3970. </div>
  3971. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  3972. <script type="text/javascript" src="../../styles/docfx.js"></script>
  3973. <script type="text/javascript" src="../../styles/main.js"></script>
  3974. </body>
  3975. </html>