Label.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <Type Name="Label" FullName="Terminal.Gui.Label">
  2. <TypeSignature Language="C#" Value="public class Label : Terminal.Gui.View" />
  3. <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Label extends Terminal.Gui.View" />
  4. <AssemblyInfo>
  5. <AssemblyName>Terminal.Gui</AssemblyName>
  6. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  7. </AssemblyInfo>
  8. <Base>
  9. <BaseTypeName>Terminal.Gui.View</BaseTypeName>
  10. </Base>
  11. <Interfaces />
  12. <Docs>
  13. <summary>
  14. Label view, displays a string at a given position, can include multiple lines.
  15. </summary>
  16. <remarks>To be added.</remarks>
  17. </Docs>
  18. <Members>
  19. <Member MemberName=".ctor">
  20. <MemberSignature Language="C#" Value="public Label (NStack.ustring text);" />
  21. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class NStack.ustring text) cil managed" />
  22. <MemberType>Constructor</MemberType>
  23. <AssemblyInfo>
  24. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  25. </AssemblyInfo>
  26. <Parameters>
  27. <Parameter Name="text" Type="NStack.ustring" />
  28. </Parameters>
  29. <Docs>
  30. <param name="text">Text.</param>
  31. <summary>
  32. Public constructor: creates a label and configures the default Width and Height based on the text, the result is suitable for Computed layout.
  33. </summary>
  34. <remarks>To be added.</remarks>
  35. </Docs>
  36. </Member>
  37. <Member MemberName=".ctor">
  38. <MemberSignature Language="C#" Value="public Label (Terminal.Gui.Rect rect, NStack.ustring text);" />
  39. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype Terminal.Gui.Rect rect, class NStack.ustring text) cil managed" />
  40. <MemberType>Constructor</MemberType>
  41. <AssemblyInfo>
  42. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  43. </AssemblyInfo>
  44. <Parameters>
  45. <Parameter Name="rect" Type="Terminal.Gui.Rect" />
  46. <Parameter Name="text" Type="NStack.ustring" />
  47. </Parameters>
  48. <Docs>
  49. <param name="rect">To be added.</param>
  50. <param name="text">To be added.</param>
  51. <summary>
  52. Public constructor: creates a label at the given
  53. coordinate with the given string and uses the specified
  54. frame for the string.
  55. </summary>
  56. <remarks>To be added.</remarks>
  57. </Docs>
  58. </Member>
  59. <Member MemberName=".ctor">
  60. <MemberSignature Language="C#" Value="public Label (int x, int y, NStack.ustring text);" />
  61. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 x, int32 y, class NStack.ustring text) cil managed" />
  62. <MemberType>Constructor</MemberType>
  63. <AssemblyInfo>
  64. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  65. </AssemblyInfo>
  66. <Parameters>
  67. <Parameter Name="x" Type="System.Int32" />
  68. <Parameter Name="y" Type="System.Int32" />
  69. <Parameter Name="text" Type="NStack.ustring" />
  70. </Parameters>
  71. <Docs>
  72. <param name="x">To be added.</param>
  73. <param name="y">To be added.</param>
  74. <param name="text">To be added.</param>
  75. <summary>
  76. Public constructor: creates a label at the given
  77. coordinate with the given string, computes the bounding box
  78. based on the size of the string, assumes that the string contains
  79. newlines for multiple lines, no special breaking rules are used.
  80. </summary>
  81. <remarks>To be added.</remarks>
  82. </Docs>
  83. </Member>
  84. <Member MemberName="MaxWidth">
  85. <MemberSignature Language="C#" Value="public static int MaxWidth (NStack.ustring text, int width);" />
  86. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 MaxWidth(class NStack.ustring text, int32 width) cil managed" />
  87. <MemberType>Method</MemberType>
  88. <AssemblyInfo>
  89. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  90. </AssemblyInfo>
  91. <ReturnValue>
  92. <ReturnType>System.Int32</ReturnType>
  93. </ReturnValue>
  94. <Parameters>
  95. <Parameter Name="text" Type="NStack.ustring" />
  96. <Parameter Name="width" Type="System.Int32" />
  97. </Parameters>
  98. <Docs>
  99. <param name="text">Text, may contain newlines.</param>
  100. <param name="width">The width for the text.</param>
  101. <summary>
  102. Computes the the max width of a line or multilines needed to render by the Label control
  103. </summary>
  104. <returns>Max width of lines.</returns>
  105. <remarks>To be added.</remarks>
  106. </Docs>
  107. </Member>
  108. <Member MemberName="MeasureLines">
  109. <MemberSignature Language="C#" Value="public static int MeasureLines (NStack.ustring text, int width);" />
  110. <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 MeasureLines(class NStack.ustring text, int32 width) cil managed" />
  111. <MemberType>Method</MemberType>
  112. <AssemblyInfo>
  113. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  114. </AssemblyInfo>
  115. <ReturnValue>
  116. <ReturnType>System.Int32</ReturnType>
  117. </ReturnValue>
  118. <Parameters>
  119. <Parameter Name="text" Type="NStack.ustring" />
  120. <Parameter Name="width" Type="System.Int32" />
  121. </Parameters>
  122. <Docs>
  123. <param name="text">Text, may contain newlines.</param>
  124. <param name="width">The width for the text.</param>
  125. <summary>
  126. Computes the number of lines needed to render the specified text by the Label control
  127. </summary>
  128. <returns>Number of lines.</returns>
  129. <remarks>To be added.</remarks>
  130. </Docs>
  131. </Member>
  132. <Member MemberName="Redraw">
  133. <MemberSignature Language="C#" Value="public override void Redraw (Terminal.Gui.Rect region);" />
  134. <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Redraw(valuetype Terminal.Gui.Rect region) cil managed" />
  135. <MemberType>Method</MemberType>
  136. <AssemblyInfo>
  137. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  138. </AssemblyInfo>
  139. <ReturnValue>
  140. <ReturnType>System.Void</ReturnType>
  141. </ReturnValue>
  142. <Parameters>
  143. <Parameter Name="region" Type="Terminal.Gui.Rect" />
  144. </Parameters>
  145. <Docs>
  146. <param name="region">To be added.</param>
  147. <summary>To be added.</summary>
  148. <remarks>To be added.</remarks>
  149. </Docs>
  150. </Member>
  151. <Member MemberName="Text">
  152. <MemberSignature Language="C#" Value="public virtual NStack.ustring Text { get; set; }" />
  153. <MemberSignature Language="ILAsm" Value=".property instance class NStack.ustring Text" />
  154. <MemberType>Property</MemberType>
  155. <AssemblyInfo>
  156. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  157. </AssemblyInfo>
  158. <ReturnValue>
  159. <ReturnType>NStack.ustring</ReturnType>
  160. </ReturnValue>
  161. <Docs>
  162. <summary>
  163. The text displayed by this widget.
  164. </summary>
  165. <value>To be added.</value>
  166. <remarks>To be added.</remarks>
  167. </Docs>
  168. </Member>
  169. <Member MemberName="TextAlignment">
  170. <MemberSignature Language="C#" Value="public Terminal.Gui.TextAlignment TextAlignment { get; set; }" />
  171. <MemberSignature Language="ILAsm" Value=".property instance valuetype Terminal.Gui.TextAlignment TextAlignment" />
  172. <MemberType>Property</MemberType>
  173. <AssemblyInfo>
  174. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  175. </AssemblyInfo>
  176. <ReturnValue>
  177. <ReturnType>Terminal.Gui.TextAlignment</ReturnType>
  178. </ReturnValue>
  179. <Docs>
  180. <summary>
  181. Controls the text-alignemtn property of the label, changing it will redisplay the label.
  182. </summary>
  183. <value>The text alignment.</value>
  184. <remarks>To be added.</remarks>
  185. </Docs>
  186. </Member>
  187. <Member MemberName="TextColor">
  188. <MemberSignature Language="C#" Value="public Terminal.Gui.Attribute TextColor { get; set; }" />
  189. <MemberSignature Language="ILAsm" Value=".property instance valuetype Terminal.Gui.Attribute TextColor" />
  190. <MemberType>Property</MemberType>
  191. <AssemblyInfo>
  192. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  193. </AssemblyInfo>
  194. <ReturnValue>
  195. <ReturnType>Terminal.Gui.Attribute</ReturnType>
  196. </ReturnValue>
  197. <Docs>
  198. <summary>
  199. The color used for the label
  200. </summary>
  201. <value>To be added.</value>
  202. <remarks>To be added.</remarks>
  203. </Docs>
  204. </Member>
  205. </Members>
  206. </Type>