Terminal.Gui.Dim.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. ### YamlMime:ManagedReference
  2. items:
  3. - uid: Terminal.Gui.Dim
  4. id: Dim
  5. children:
  6. - Terminal.Gui.Dim.#ctor
  7. - Terminal.Gui.Dim.Fill(System.Int32)
  8. - Terminal.Gui.Dim.Height(Terminal.Gui.View)
  9. - Terminal.Gui.Dim.op_Addition(Terminal.Gui.Dim,Terminal.Gui.Dim)
  10. - Terminal.Gui.Dim.op_Implicit(System.Int32 to Terminal.Gui.Dim)
  11. - Terminal.Gui.Dim.op_Subtraction(Terminal.Gui.Dim,Terminal.Gui.Dim)
  12. - Terminal.Gui.Dim.Percent(System.Single)
  13. - Terminal.Gui.Dim.Width(Terminal.Gui.View)
  14. langs:
  15. - csharp
  16. name: Dim
  17. nameWithType: Dim
  18. fullName: Terminal.Gui.Dim
  19. type: Class
  20. assemblies:
  21. - Terminal.Gui
  22. namespace: Terminal.Gui
  23. remarks: >-
  24. <p>
  25. Use the Dim objects on the Width or Height properties of a view to control the position.
  26. </p>
  27. <p>
  28. These can be used to set the absolute position, when merely assigning an
  29. integer value (via the implicit integer to Pos conversion), and they can be combined
  30. to produce more useful layouts, like: Pos.Center - 3, which would shift the postion
  31. of the view 3 characters to the left after centering for example.
  32. </p>
  33. syntax:
  34. content: public class Dim
  35. inheritance:
  36. - System.Object
  37. implements: []
  38. inheritedMembers: []
  39. - uid: Terminal.Gui.Dim.#ctor
  40. id: '#ctor'
  41. parent: Terminal.Gui.Dim
  42. langs:
  43. - csharp
  44. name: Dim()
  45. nameWithType: Dim.Dim()
  46. fullName: Dim.Dim()
  47. type: Constructor
  48. assemblies:
  49. - Terminal.Gui
  50. namespace: Terminal.Gui
  51. syntax:
  52. content: public Dim ();
  53. parameters: []
  54. overload: Terminal.Gui.Dim.#ctor*
  55. exceptions: []
  56. - uid: Terminal.Gui.Dim.Fill(System.Int32)
  57. id: Fill(System.Int32)
  58. parent: Terminal.Gui.Dim
  59. langs:
  60. - csharp
  61. name: Fill(Int32)
  62. nameWithType: Dim.Fill(Int32)
  63. fullName: Dim.Fill(Int32)
  64. type: Method
  65. assemblies:
  66. - Terminal.Gui
  67. namespace: Terminal.Gui
  68. summary: Creates a Dim object that fills the dimension, but leaves the specified number of colums for a margin.
  69. syntax:
  70. content: public static Terminal.Gui.Dim Fill (int margin = 0);
  71. parameters:
  72. - id: margin
  73. type: System.Int32
  74. description: Margin to use.
  75. return:
  76. type: Terminal.Gui.Dim
  77. description: The Fill dimension.
  78. overload: Terminal.Gui.Dim.Fill*
  79. exceptions: []
  80. - uid: Terminal.Gui.Dim.Height(Terminal.Gui.View)
  81. id: Height(Terminal.Gui.View)
  82. parent: Terminal.Gui.Dim
  83. langs:
  84. - csharp
  85. name: Height(View)
  86. nameWithType: Dim.Height(View)
  87. fullName: Dim.Height(View)
  88. type: Method
  89. assemblies:
  90. - Terminal.Gui
  91. namespace: Terminal.Gui
  92. summary: Returns a Dim object tracks the Height of the specified view.
  93. syntax:
  94. content: public static Terminal.Gui.Dim Height (Terminal.Gui.View view);
  95. parameters:
  96. - id: view
  97. type: Terminal.Gui.View
  98. description: The view that will be tracked.
  99. return:
  100. type: Terminal.Gui.Dim
  101. description: The dimension of the other view.
  102. overload: Terminal.Gui.Dim.Height*
  103. exceptions: []
  104. - uid: Terminal.Gui.Dim.op_Addition(Terminal.Gui.Dim,Terminal.Gui.Dim)
  105. id: op_Addition(Terminal.Gui.Dim,Terminal.Gui.Dim)
  106. parent: Terminal.Gui.Dim
  107. langs:
  108. - csharp
  109. name: op_Addition(Dim, Dim)
  110. nameWithType: Dim.op_Addition(Dim, Dim)
  111. fullName: Dim.op_Addition(Dim, Dim)
  112. type: Operator
  113. assemblies:
  114. - Terminal.Gui
  115. namespace: Terminal.Gui
  116. summary: Adds a <xref href="Terminal.Gui.Pos"></xref> to a <xref href="Terminal.Gui.Pos"></xref>, yielding a new <xref href="Terminal.Gui.Pos"></xref>.
  117. syntax:
  118. content: public static Terminal.Gui.Dim op_Addition (Terminal.Gui.Dim left, Terminal.Gui.Dim right);
  119. parameters:
  120. - id: left
  121. type: Terminal.Gui.Dim
  122. description: The first <xref href="Terminal.Gui.Pos"></xref> to add.
  123. - id: right
  124. type: Terminal.Gui.Dim
  125. description: The second <xref href="Terminal.Gui.Pos"></xref> to add.
  126. return:
  127. type: Terminal.Gui.Dim
  128. description: The <xref href="Terminal.Gui.Pos"></xref> that is the sum of the values of <code>left</code> and <code>right</code>.
  129. overload: Terminal.Gui.Dim.op_Addition*
  130. exceptions: []
  131. - uid: Terminal.Gui.Dim.op_Implicit(System.Int32 to Terminal.Gui.Dim)
  132. id: op_Implicit(System.Int32 to Terminal.Gui.Dim)
  133. parent: Terminal.Gui.Dim
  134. langs:
  135. - csharp
  136. name: op_Implicit(Int32 to Dim)
  137. nameWithType: Dim.op_Implicit(Int32 to Dim)
  138. fullName: Dim.op_Implicit(Int32 to Dim)
  139. type: Operator
  140. assemblies:
  141. - Terminal.Gui
  142. namespace: Terminal.Gui
  143. summary: Creates an Absolute Pos from the specified integer value.
  144. syntax:
  145. content: public static Terminal.Gui.Dim op_Implicit (int n);
  146. parameters:
  147. - id: n
  148. type: System.Int32
  149. description: The value to convert to the pos.
  150. return:
  151. type: Terminal.Gui.Dim
  152. description: The Absolute Pos.
  153. overload: Terminal.Gui.Dim.op_Implicit*
  154. exceptions: []
  155. - uid: Terminal.Gui.Dim.op_Subtraction(Terminal.Gui.Dim,Terminal.Gui.Dim)
  156. id: op_Subtraction(Terminal.Gui.Dim,Terminal.Gui.Dim)
  157. parent: Terminal.Gui.Dim
  158. langs:
  159. - csharp
  160. name: op_Subtraction(Dim, Dim)
  161. nameWithType: Dim.op_Subtraction(Dim, Dim)
  162. fullName: Dim.op_Subtraction(Dim, Dim)
  163. type: Operator
  164. assemblies:
  165. - Terminal.Gui
  166. namespace: Terminal.Gui
  167. summary: Subtracts a <xref href="Terminal.Gui.Pos"></xref> from a <xref href="Terminal.Gui.Pos"></xref>, yielding a new <xref href="Terminal.Gui.Pos"></xref>.
  168. syntax:
  169. content: public static Terminal.Gui.Dim op_Subtraction (Terminal.Gui.Dim left, Terminal.Gui.Dim right);
  170. parameters:
  171. - id: left
  172. type: Terminal.Gui.Dim
  173. description: The <xref href="Terminal.Gui.Pos"></xref> to subtract from (the minuend).
  174. - id: right
  175. type: Terminal.Gui.Dim
  176. description: The <xref href="Terminal.Gui.Pos"></xref> to subtract (the subtrahend).
  177. return:
  178. type: Terminal.Gui.Dim
  179. description: The <xref href="Terminal.Gui.Pos"></xref> that is the <code>left</code> minus <code>right</code>.
  180. overload: Terminal.Gui.Dim.op_Subtraction*
  181. exceptions: []
  182. - uid: Terminal.Gui.Dim.Percent(System.Single)
  183. id: Percent(System.Single)
  184. parent: Terminal.Gui.Dim
  185. langs:
  186. - csharp
  187. name: Percent(Single)
  188. nameWithType: Dim.Percent(Single)
  189. fullName: Dim.Percent(Single)
  190. type: Method
  191. assemblies:
  192. - Terminal.Gui
  193. namespace: Terminal.Gui
  194. summary: Creates a percentage Dim object
  195. syntax:
  196. content: public static Terminal.Gui.Dim Percent (float n);
  197. parameters:
  198. - id: n
  199. type: System.Single
  200. description: A value between 0 and 100 representing the percentage.
  201. return:
  202. type: Terminal.Gui.Dim
  203. description: The percent Dim object.
  204. overload: Terminal.Gui.Dim.Percent*
  205. exceptions: []
  206. - uid: Terminal.Gui.Dim.Width(Terminal.Gui.View)
  207. id: Width(Terminal.Gui.View)
  208. parent: Terminal.Gui.Dim
  209. langs:
  210. - csharp
  211. name: Width(View)
  212. nameWithType: Dim.Width(View)
  213. fullName: Dim.Width(View)
  214. type: Method
  215. assemblies:
  216. - Terminal.Gui
  217. namespace: Terminal.Gui
  218. summary: Returns a Dim object tracks the Width of the specified view.
  219. syntax:
  220. content: public static Terminal.Gui.Dim Width (Terminal.Gui.View view);
  221. parameters:
  222. - id: view
  223. type: Terminal.Gui.View
  224. description: The view that will be tracked.
  225. return:
  226. type: Terminal.Gui.Dim
  227. description: The dimension of the other view.
  228. overload: Terminal.Gui.Dim.Width*
  229. exceptions: []
  230. references:
  231. - uid: System.Object
  232. parent: System
  233. isExternal: true
  234. name: Object
  235. nameWithType: Object
  236. fullName: System.Object
  237. - uid: Terminal.Gui.Dim.#ctor
  238. parent: Terminal.Gui.Dim
  239. isExternal: false
  240. name: Dim()
  241. nameWithType: Dim.Dim()
  242. fullName: Dim.Dim()
  243. - uid: Terminal.Gui.Dim.Fill(System.Int32)
  244. parent: Terminal.Gui.Dim
  245. isExternal: false
  246. name: Fill(Int32)
  247. nameWithType: Dim.Fill(Int32)
  248. fullName: Dim.Fill(Int32)
  249. - uid: Terminal.Gui.Dim
  250. parent: Terminal.Gui
  251. isExternal: false
  252. name: Dim
  253. nameWithType: Dim
  254. fullName: Terminal.Gui.Dim
  255. - uid: System.Int32
  256. parent: System
  257. isExternal: true
  258. name: Int32
  259. nameWithType: Int32
  260. fullName: System.Int32
  261. - uid: Terminal.Gui.Dim.Height(Terminal.Gui.View)
  262. parent: Terminal.Gui.Dim
  263. isExternal: false
  264. name: Height(View)
  265. nameWithType: Dim.Height(View)
  266. fullName: Dim.Height(View)
  267. - uid: Terminal.Gui.View
  268. parent: Terminal.Gui
  269. isExternal: false
  270. name: View
  271. nameWithType: View
  272. fullName: Terminal.Gui.View
  273. - uid: Terminal.Gui.Dim.op_Addition(Terminal.Gui.Dim,Terminal.Gui.Dim)
  274. parent: Terminal.Gui.Dim
  275. isExternal: false
  276. name: op_Addition(Dim, Dim)
  277. nameWithType: Dim.op_Addition(Dim, Dim)
  278. fullName: Dim.op_Addition(Dim, Dim)
  279. - uid: Terminal.Gui.Dim.op_Implicit(System.Int32 to Terminal.Gui.Dim)
  280. parent: Terminal.Gui.Dim
  281. isExternal: false
  282. name: op_Implicit(Int32 to Dim)
  283. nameWithType: Dim.op_Implicit(Int32 to Dim)
  284. fullName: Dim.op_Implicit(Int32 to Dim)
  285. - uid: Terminal.Gui.Dim.op_Subtraction(Terminal.Gui.Dim,Terminal.Gui.Dim)
  286. parent: Terminal.Gui.Dim
  287. isExternal: false
  288. name: op_Subtraction(Dim, Dim)
  289. nameWithType: Dim.op_Subtraction(Dim, Dim)
  290. fullName: Dim.op_Subtraction(Dim, Dim)
  291. - uid: Terminal.Gui.Dim.Percent(System.Single)
  292. parent: Terminal.Gui.Dim
  293. isExternal: false
  294. name: Percent(Single)
  295. nameWithType: Dim.Percent(Single)
  296. fullName: Dim.Percent(Single)
  297. - uid: System.Single
  298. parent: System
  299. isExternal: true
  300. name: Single
  301. nameWithType: Single
  302. fullName: System.Single
  303. - uid: Terminal.Gui.Dim.Width(Terminal.Gui.View)
  304. parent: Terminal.Gui.Dim
  305. isExternal: false
  306. name: Width(View)
  307. nameWithType: Dim.Width(View)
  308. fullName: Dim.Width(View)
  309. - uid: Terminal.Gui.Dim.#ctor*
  310. parent: Terminal.Gui.Dim
  311. isExternal: false
  312. name: Dim
  313. nameWithType: Dim.Dim
  314. fullName: Dim.Dim
  315. - uid: Terminal.Gui.Dim.Fill*
  316. parent: Terminal.Gui.Dim
  317. isExternal: false
  318. name: Fill
  319. nameWithType: Dim.Fill
  320. fullName: Dim.Fill
  321. - uid: Terminal.Gui.Dim.Height*
  322. parent: Terminal.Gui.Dim
  323. isExternal: false
  324. name: Height
  325. nameWithType: Dim.Height
  326. fullName: Dim.Height
  327. - uid: Terminal.Gui.Dim.op_Addition*
  328. parent: Terminal.Gui.Dim
  329. isExternal: false
  330. name: op_Addition
  331. nameWithType: Dim.op_Addition
  332. fullName: Dim.op_Addition
  333. - uid: Terminal.Gui.Dim.op_Implicit*
  334. parent: Terminal.Gui.Dim
  335. isExternal: false
  336. name: op_Implicit
  337. nameWithType: Dim.op_Implicit
  338. fullName: Dim.op_Implicit
  339. - uid: Terminal.Gui.Dim.op_Subtraction*
  340. parent: Terminal.Gui.Dim
  341. isExternal: false
  342. name: op_Subtraction
  343. nameWithType: Dim.op_Subtraction
  344. fullName: Dim.op_Subtraction
  345. - uid: Terminal.Gui.Dim.Percent*
  346. parent: Terminal.Gui.Dim
  347. isExternal: false
  348. name: Percent
  349. nameWithType: Dim.Percent
  350. fullName: Dim.Percent
  351. - uid: Terminal.Gui.Dim.Width*
  352. parent: Terminal.Gui.Dim
  353. isExternal: false
  354. name: Width
  355. nameWithType: Dim.Width
  356. fullName: Dim.Width