PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2013/Source/ndp/fx/src/WinForms/Managed/System/WinForms/Layout/PropertyNames.cs

https://github.com/tforsberg/z
C# | 160 lines | 149 code | 2 blank | 9 comment | 0 complexity | 5a24c56ae9178f92f04f651e6571b1f0 MD5 | raw file
  1. //------------------------------------------------------------------------------
  2. // <copyright file="WinFormsUtils.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. //------------------------------------------------------------------------------
  6. namespace System.Windows.Forms.Layout {
  7. using System.Diagnostics.CodeAnalysis;
  8. // LayoutEventArgs takes a string for AffectedProperty. This class contains const
  9. // strings to use as property names. Doing this allows us to use reference comparisons
  10. // which is advantageous because 1) pref and 2) we will not accidently collide with
  11. // names that extenders provide.
  12. internal class PropertyNames {
  13. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  14. public static readonly string Alignment = "Alignment";
  15. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  16. public static readonly string Anchor = "Anchor";
  17. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  18. public static readonly string AutoScroll = "AutoScroll";
  19. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  20. public static readonly string AutoSize = "AutoSize";
  21. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  22. public static readonly string Appearance = "Appearance";
  23. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  24. public static readonly string AutoEllipsis = "AutoEllipsis";
  25. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  26. public static readonly string BorderStyle = "BorderStyle";
  27. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  28. public static readonly string CellBorderStyle = "CellBorderStyle";
  29. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  30. public static readonly string Bounds = "Bounds";
  31. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  32. public static readonly string CheckAlign = "CheckAlign";
  33. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  34. public static readonly string ChildIndex = "ChildIndex";
  35. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  36. public static readonly string ColumnHeadersHeight = "ColumnHeadersHeight";
  37. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  38. public static readonly string ColumnHeadersVisible = "ColumnHeadersVisible";
  39. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  40. public static readonly string Columns = "Columns";
  41. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  42. public static readonly string ColumnSpan = "ColumnSpan";
  43. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  44. public static readonly string ColumnStyles = "ColumnStyles";
  45. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  46. public static readonly string Controls = "Controls";
  47. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  48. public static readonly string Dock = "Dock";
  49. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  50. public static readonly string DisplayRectangle = "DisplayRectangle";
  51. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  52. public static readonly string DisplayStyle = "DisplayStyle";
  53. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  54. public static readonly string DrawMode = "DrawMode";
  55. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  56. public static readonly string DropDownButtonWidth = "DropDownButtonWidth";
  57. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  58. public static readonly string FlatAppearanceBorderSize = "FlatAppearance.BorderSize";
  59. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  60. public static readonly string FlatStyle = "FlatStyle";
  61. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  62. public static readonly string FlowBreak = "FlowBreak";
  63. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  64. public static readonly string FlowDirection = "FlowDirection";
  65. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  66. public static readonly string Font = "Font";
  67. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  68. public static readonly string GripStyle = "GripStyle";
  69. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  70. public static readonly string GrowStyle = "GrowStyle";
  71. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  72. public static readonly string Image= "Image";
  73. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  74. public static readonly string ImageIndex= "ImageIndex";
  75. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  76. public static readonly string ImageScaling= "ImageScaling";
  77. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  78. public static readonly string ImageScalingSize= "ImageScalingSize";
  79. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  80. public static readonly string ImageKey= "ImageKey";
  81. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  82. public static readonly string ImageAlign = "ImageAlign";
  83. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  84. public static readonly string Items = "Items";
  85. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  86. public static readonly string LayoutSettings = "LayoutSettings";
  87. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  88. public static readonly string LinkArea = "LinkArea";
  89. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  90. public static readonly string Links = "Links";
  91. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  92. public static readonly string LayoutStyle = "LayoutStyle";
  93. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  94. public static readonly string Location = "Location";
  95. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  96. public static readonly string Margin = "Margin";
  97. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  98. public static readonly string MaximumSize = "MaximumSize";
  99. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  100. public static readonly string MinimumSize = "MinimumSize";
  101. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  102. public static readonly string Multiline = "Multiline";
  103. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  104. public static readonly string Orientation = "Orientation";
  105. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  106. public static readonly string PreferredSize = "PreferredSize";
  107. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  108. public static readonly string Padding = "Padding";
  109. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  110. public static readonly string Parent = "Parent";
  111. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  112. public static readonly string RightToLeft = "RightToLeft";
  113. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  114. public static readonly string RightToLeftLayout = "RightToLeftLayout";
  115. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  116. public static readonly string RowHeadersVisible = "RowHeadersVisible";
  117. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  118. public static readonly string RowHeadersWidth = "RowHeadersWidth";
  119. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  120. public static readonly string Rows = "Rows";
  121. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  122. public static readonly string RowSpan = "RowSpan";
  123. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  124. public static readonly string RowStyles = "RowStyles";
  125. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  126. public static readonly string Renderer = "Renderer";
  127. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  128. public static readonly string ScrollBars = "ScrollBars";
  129. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  130. public static readonly string Size = "Size";
  131. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  132. public static readonly string ShowDropDownArrow = "ShowDropDownArrow";
  133. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  134. public static readonly string ShowImageMargin = "ShowCheckMargin";
  135. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  136. public static readonly string ShowCheckMargin = "ShowCheckMargin";
  137. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  138. public static readonly string Spring = "Spring";
  139. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  140. public static readonly string Style = "Style";
  141. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  142. public static readonly string TableIndex = "TableIndex";
  143. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  144. public static readonly string Text = "Text";
  145. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  146. public static readonly string TextAlign = "TextAlign";
  147. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  148. public static readonly string TextImageRelation = "TextImageRelation";
  149. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  150. public static readonly string UseCompatibleTextRendering = "UseCompatibleTextRendering";
  151. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  152. public static readonly string Visible = "Visible";
  153. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  154. public static readonly string WordWrap = "WordWrap";
  155. [SuppressMessage("Microsoft.Performance", "CA1802:UseLiteralsWhereAppropriate")]
  156. public static readonly string WrapContents = "WrapContents";
  157. }
  158. }