Terminal.Gui.Graphs.IAnnotation.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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>Interface IAnnotation
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IAnnotation
  11. ">
  12. <link rel="shortcut icon" href="../../favicon.ico">
  13. <link rel="stylesheet" href="../../styles/docfx.vendor.min.css">
  14. <link rel="stylesheet" href="../../styles/docfx.css">
  15. <link rel="stylesheet" href="../../styles/main.css">
  16. <meta property="docfx:navrel" content="../../toc.html">
  17. <meta property="docfx:tocrel" content="toc.html">
  18. <meta property="docfx:rel" content="../../">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix" data-offset="120">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div class="container body-content">
  54. <div id="search-results">
  55. <div class="search-list">Search Results for <span></span></div>
  56. <div class="sr-items">
  57. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  58. </div>
  59. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  60. </div>
  61. </div>
  62. <div role="main" class="container body-content hide-when-search">
  63. <div class="sidenav hide-when-search">
  64. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  65. <div class="sidetoggle collapse" id="sidetoggle">
  66. <div id="sidetoc"></div>
  67. </div>
  68. </div>
  69. <div class="article row grid-right">
  70. <div class="col-md-10">
  71. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Graphs.IAnnotation">
  72. <h1 id="Terminal_Gui_Graphs_IAnnotation" data-uid="Terminal.Gui.Graphs.IAnnotation" class="text-break">Interface IAnnotation
  73. </h1>
  74. <div class="markdown level0 summary"><p>Describes an overlay element that is rendered either before or
  75. after a series.</p>
  76. <p>Annotations can be positioned either in screen space (e.g.
  77. a legend) or in graph space (e.g. a line showing high point)
  78. </p>
  79. <p>Unlike <a class="xref" href="Terminal.Gui.Graphs.ISeries.html">ISeries</a>, annotations are allowed to
  80. draw into graph margins
  81. </p></div>
  82. <div class="markdown level0 conceptual"></div>
  83. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.html">Terminal</a>.<a class="xref" href="Terminal.Gui.html">Gui</a>.<a class="xref" href="Terminal.Gui.Graphs.html">Graphs</a></h6>
  84. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  85. <h5 id="Terminal_Gui_Graphs_IAnnotation_syntax">Syntax</h5>
  86. <div class="codewrapper">
  87. <pre><code class="lang-csharp hljs">public interface IAnnotation</code></pre>
  88. </div>
  89. <h3 id="properties">Properties
  90. </h3>
  91. <span class="small pull-right mobile-hide">
  92. <span class="divider">|</span>
  93. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Graphs_IAnnotation_BeforeSeries.md&amp;value=---%0Auid%3A%20Terminal.Gui.Graphs.IAnnotation.BeforeSeries%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  94. </span>
  95. <span class="small pull-right mobile-hide">
  96. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Core/Graphs/Annotations.cs/#L23">View Source</a>
  97. </span>
  98. <a id="Terminal_Gui_Graphs_IAnnotation_BeforeSeries_" data-uid="Terminal.Gui.Graphs.IAnnotation.BeforeSeries*"></a>
  99. <h4 id="Terminal_Gui_Graphs_IAnnotation_BeforeSeries" data-uid="Terminal.Gui.Graphs.IAnnotation.BeforeSeries">BeforeSeries</h4>
  100. <div class="markdown level1 summary">True if annotation should be drawn before <a class="xref" href="Terminal.Gui.Graphs.ISeries.html">ISeries</a>. This
  101. allowes Series and later annotations to potentially draw over the top
  102. of this annotation.</div>
  103. <div class="markdown level1 conceptual"></div>
  104. <h5 class="declaration">Declaration</h5>
  105. <div class="codewrapper">
  106. <pre><code class="lang-csharp hljs">bool BeforeSeries { get; }</code></pre>
  107. </div>
  108. <h5 class="propertyValue">Property Value</h5>
  109. <table class="table table-bordered table-condensed">
  110. <thead>
  111. <tr>
  112. <th>Type</th>
  113. <th>Description</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <tr>
  118. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  119. <td></td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. <h3 id="methods">Methods
  124. </h3>
  125. <span class="small pull-right mobile-hide">
  126. <span class="divider">|</span>
  127. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Graphs_IAnnotation_Render_Terminal_Gui_GraphView_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Graphs.IAnnotation.Render(Terminal.Gui.GraphView)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  128. </span>
  129. <span class="small pull-right mobile-hide">
  130. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Core/Graphs/Annotations.cs/#L31">View Source</a>
  131. </span>
  132. <a id="Terminal_Gui_Graphs_IAnnotation_Render_" data-uid="Terminal.Gui.Graphs.IAnnotation.Render*"></a>
  133. <h4 id="Terminal_Gui_Graphs_IAnnotation_Render_Terminal_Gui_GraphView_" data-uid="Terminal.Gui.Graphs.IAnnotation.Render(Terminal.Gui.GraphView)">Render(GraphView)</h4>
  134. <div class="markdown level1 summary">Called once after series have been rendered (or before if <a class="xref" href="Terminal.Gui.Graphs.IAnnotation.html#Terminal_Gui_Graphs_IAnnotation_BeforeSeries">BeforeSeries</a> is true).
  135. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a> to draw and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> to avoid drawing outside of
  136. graph</div>
  137. <div class="markdown level1 conceptual"></div>
  138. <h5 class="declaration">Declaration</h5>
  139. <div class="codewrapper">
  140. <pre><code class="lang-csharp hljs">void Render(GraphView graph)</code></pre>
  141. </div>
  142. <h5 class="parameters">Parameters</h5>
  143. <table class="table table-bordered table-condensed">
  144. <thead>
  145. <tr>
  146. <th>Type</th>
  147. <th>Name</th>
  148. <th>Description</th>
  149. </tr>
  150. </thead>
  151. <tbody>
  152. <tr>
  153. <td><a class="xref" href="Terminal.Gui.GraphView.html">GraphView</a></td>
  154. <td><span class="parametername">graph</span></td>
  155. <td></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. </article>
  160. </div>
  161. <div class="hidden-sm col-md-2" role="complementary">
  162. <div class="sideaffix">
  163. <div class="contribution">
  164. <ul class="nav">
  165. <li>
  166. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Graphs_IAnnotation.md&amp;value=---%0Auid%3A%20Terminal.Gui.Graphs.IAnnotation%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Edit this page</a>
  167. </li>
  168. <li>
  169. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Core/Graphs/Annotations.cs/#L17" class="contribution-link">View Source</a>
  170. </li>
  171. </ul>
  172. </div>
  173. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  174. <h5>In this article</h5>
  175. <div></div>
  176. </nav>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <footer>
  182. <div class="grad-bottom"></div>
  183. <div class="footer">
  184. <div class="container">
  185. <span class="pull-right">
  186. <a href="#top">Back to top</a>
  187. </span>
  188. <span>Generated by <strong>DocFX</strong></span>
  189. </div>
  190. </div>
  191. </footer>
  192. </div>
  193. <script type="text/javascript" src="../../styles/docfx.vendor.min.js"></script>
  194. <script type="text/javascript" src="../../styles/docfx.js"></script>
  195. <script type="text/javascript" src="../../styles/main.js"></script>
  196. </body>
  197. </html>