Terminal.Gui.View.html 167 KB

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