-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathColumnStyle.xml
More file actions
213 lines (196 loc) · 12 KB
/
ColumnStyle.xml
File metadata and controls
213 lines (196 loc) · 12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<Type Name="ColumnStyle" FullName="System.Windows.Forms.ColumnStyle">
<TypeSignature Language="C#" Value="public class ColumnStyle : System.Windows.Forms.TableLayoutStyle" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ColumnStyle extends System.Windows.Forms.TableLayoutStyle" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.ColumnStyle" />
<TypeSignature Language="VB.NET" Value="Public Class ColumnStyle
Inherits TableLayoutStyle" />
<TypeSignature Language="F#" Value="type ColumnStyle = class
 inherit TableLayoutStyle" />
<TypeSignature Language="C++ CLI" Value="public ref class ColumnStyle : System::Windows::Forms::TableLayoutStyle" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Forms.TableLayoutStyle</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents the look and feel of a column in a table layout.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ColumnStyle> class represents the user interface (UI) characteristics of column in a <xref:System.Windows.Forms.TableLayoutPanel>. The styles for all the columns in such a table are collected in the <xref:System.Windows.Forms.TableLayoutPanel.ColumnStyles?displayProperty=nameWithType> property.
This simple class offers the <xref:System.Windows.Forms.ColumnStyle.Width*> and <xref:System.Windows.Forms.TableLayoutStyle.SizeType*> properties for a column.
## Examples
The following code example demonstrates how to extract a <xref:System.Windows.Forms.ColumnStyle> from a <xref:System.Windows.Forms.TableLayoutColumnStyleCollection>.
This code example is part of a larger example provided for the <xref:System.Windows.Forms.TableLayoutPanel> class.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/ColumnStyle/Overview/form1.cs" id="Snippet8":::
:::code language="vb" source="~/snippets/visualbasic/System.Windows.Forms/ColumnStyle/Overview/form1.vb" id="Snippet8":::
]]></format>
</remarks>
<altmember cref="P:System.Windows.Forms.TableLayoutPanel.ColumnStyles" />
<altmember cref="T:System.Windows.Forms.TableLayoutColumnStyleCollection" />
<altmember cref="T:System.Windows.Forms.RowStyle" />
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ColumnStyle" /> class to its default state.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ColumnStyle ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ColumnStyle.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ColumnStyle();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ColumnStyle" /> class to its default state.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This constructor sets the <xref:System.Windows.Forms.TableLayoutStyle.SizeType> property to <xref:System.Windows.Forms.SizeType.AutoSize> and the <xref:System.Windows.Forms.ColumnStyle.Width> property to 0.
]]></format>
</remarks>
<altmember cref="Overload:System.Windows.Forms.RowStyle.#ctor" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ColumnStyle (System.Windows.Forms.SizeType sizeType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Windows.Forms.SizeType sizeType) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ColumnStyle.#ctor(System.Windows.Forms.SizeType)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (sizeType As SizeType)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.ColumnStyle : System.Windows.Forms.SizeType -> System.Windows.Forms.ColumnStyle" Usage="new System.Windows.Forms.ColumnStyle sizeType" />
<MemberSignature Language="C++ CLI" Value="public:
 ColumnStyle(System::Windows::Forms::SizeType sizeType);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="sizeType" Type="System.Windows.Forms.SizeType" />
</Parameters>
<Docs>
<param name="sizeType">A <see cref="P:System.Windows.Forms.TableLayoutStyle.SizeType" /> indicating how the column should be should be sized relative to its containing table.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ColumnStyle" /> class using the supplied <see cref="T:System.Windows.Forms.SizeType" /> value.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This constructor sets the <xref:System.Windows.Forms.ColumnStyle.Width> property to 0.
]]></format>
</remarks>
<altmember cref="Overload:System.Windows.Forms.RowStyle.#ctor" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ColumnStyle (System.Windows.Forms.SizeType sizeType, float width);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Windows.Forms.SizeType sizeType, float32 width) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ColumnStyle.#ctor(System.Windows.Forms.SizeType,System.Single)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (sizeType As SizeType, width As Single)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.ColumnStyle : System.Windows.Forms.SizeType * single -> System.Windows.Forms.ColumnStyle" Usage="new System.Windows.Forms.ColumnStyle (sizeType, width)" />
<MemberSignature Language="C++ CLI" Value="public:
 ColumnStyle(System::Windows::Forms::SizeType sizeType, float width);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="sizeType" Type="System.Windows.Forms.SizeType" />
<Parameter Name="width" Type="System.Single" />
</Parameters>
<Docs>
<param name="sizeType">A <see cref="P:System.Windows.Forms.TableLayoutStyle.SizeType" /> indicating how the column should be should be sized relative to its containing table.</param>
<param name="width">The preferred width, in pixels or percentage, depending on the <paramref name="sizeType" /> parameter.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ColumnStyle" /> class using the supplied <see cref="T:System.Windows.Forms.SizeType" /> and width values.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The exact meaning of the `width` parameter will vary depending on the `sizeType` parameter. For more information, see the <xref:System.Windows.Forms.ColumnStyle.Width> property.
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="width" /> is less than 0.</exception>
<altmember cref="P:System.Windows.Forms.ColumnStyle.Width" />
<altmember cref="Overload:System.Windows.Forms.RowStyle.#ctor" />
</Docs>
</Member>
<Member MemberName="Width">
<MemberSignature Language="C#" Value="public float Width { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float32 Width" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ColumnStyle.Width" />
<MemberSignature Language="VB.NET" Value="Public Property Width As Single" />
<MemberSignature Language="F#" Value="member this.Width : single with get, set" Usage="System.Windows.Forms.ColumnStyle.Width" />
<MemberSignature Language="C++ CLI" Value="public:
 property float Width { float get(); void set(float value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the width value for a column.</summary>
<value>The preferred width, in pixels or percentage, depending on the <see cref="P:System.Windows.Forms.TableLayoutStyle.SizeType" /> property.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The `width` parameter will take on different meanings depending on the <xref:System.Windows.Forms.TableLayoutStyle.SizeType> property.
|`sizeType` value|`width` interpretation|
|----------------------|----------------------------|
|<xref:System.Windows.Forms.SizeType.Absolute>|The preferred column width in pixels (fractional portion ignored).|
|<xref:System.Windows.Forms.SizeType.AutoSize>|Not applicable - the width parameter is ignored.|
|<xref:System.Windows.Forms.SizeType.Percent>|The preferred column width as a percentage of the containing table.|
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than 0 when setting this property.</exception>
<altmember cref="P:System.Windows.Forms.TableLayoutStyle.SizeType" />
</Docs>
</Member>
</Members>
</Type>