|
46 | 46 | <Docs>
|
47 | 47 | <summary>Converts colors from one data type to another. Access this class through the <see cref="T:System.ComponentModel.TypeDescriptor" />.</summary>
|
48 | 48 | <remarks>
|
49 |
| - <format type="text/markdown"><![CDATA[ |
50 |
| - |
51 |
| -## Remarks |
52 |
| - When converting from a string to a <xref:System.Drawing.Color> the <xref:System.Drawing.ColorConverter> expects the unqualified color name; otherwise, an exception will occur in the conversion process. For example, you should pass "Blue", not "System.Drawing.Color.Blue" or "Color.Blue", to the <xref:System.Drawing.ColorConverter.ConvertFrom%2A> method. |
53 |
| - |
54 |
| - |
55 |
| - |
56 |
| -## Examples |
57 |
| - The following code example demonstrates how to use the <xref:System.ComponentModel.TypeConverter.ConvertToString%2A> method. This example is designed to be used with Windows Forms. Paste this code into a form and call the `ShowColorConverter` method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>. |
58 |
| - |
| 49 | + <format type="text/markdown"><![CDATA[ |
| 50 | +
|
| 51 | +## Remarks |
| 52 | + When converting from a string to a <xref:System.Drawing.Color> the <xref:System.Drawing.ColorConverter> expects the unqualified color name; otherwise, an exception will occur in the conversion process. For example, you should pass "Blue", not "System.Drawing.Color.Blue" or "Color.Blue", to the <xref:System.Drawing.ColorConverter.ConvertFrom%2A> method. |
| 53 | +
|
| 54 | +
|
| 55 | +
|
| 56 | +## Examples |
| 57 | + The following code example demonstrates how to use the <xref:System.ComponentModel.TypeConverter.ConvertToString%2A> method. This example is designed to be used with Windows Forms. Paste this code into a form and call the `ShowColorConverter` method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>. |
| 58 | +
|
59 | 59 | :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.Converters/CPP/form1.cpp" id="Snippet2":::
|
60 | 60 | :::code language="csharp" source="~/snippets/csharp/System.Drawing/ColorConverter/Overview/form1.cs" id="Snippet2":::
|
61 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.Converters/VB/form1.vb" id="Snippet2"::: |
62 |
| - |
| 61 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.Converters/VB/form1.vb" id="Snippet2"::: |
| 62 | +
|
63 | 63 | ]]></format>
|
64 | 64 | </remarks>
|
65 | 65 | </Docs>
|
|
202 | 202 | </Parameter>
|
203 | 203 | </Parameters>
|
204 | 204 | <Docs>
|
205 |
| - <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param> |
206 |
| - <param name="destinationType">A <see cref="T:System.Type" /> that represents the type to which you want to convert.</param> |
| 205 | + <param name="context">A format context.</param> |
| 206 | + <param name="destinationType">The type to which you want to convert.</param> |
207 | 207 | <summary>Returns a value indicating whether this converter can convert an object to the given destination type using the context.</summary>
|
208 | 208 | <returns>
|
209 | 209 | <see langword="true" /> if this converter can perform the operation; otherwise, <see langword="false" />.</returns>
|
|
262 | 262 | <summary>Converts the given object to the converter's native type.</summary>
|
263 | 263 | <returns>An <see cref="T:System.Object" /> representing the converted value.</returns>
|
264 | 264 | <remarks>
|
265 |
| - <format type="text/markdown"><![CDATA[ |
266 |
| - |
267 |
| -## Remarks |
268 |
| - When converting from a string to a <xref:System.Drawing.Color> the <xref:System.Drawing.ColorConverter> expects the unqualified color name; otherwise, an exception will occur in the conversion process. For example, you should pass "Blue", not "System.Drawing.Color.Blue" or "Color.Blue", to the <xref:System.Drawing.ColorConverter.ConvertFrom%2A> method. |
269 |
| - |
| 265 | + <format type="text/markdown"><![CDATA[ |
| 266 | +
|
| 267 | +## Remarks |
| 268 | + When converting from a string to a <xref:System.Drawing.Color> the <xref:System.Drawing.ColorConverter> expects the unqualified color name; otherwise, an exception will occur in the conversion process. For example, you should pass "Blue", not "System.Drawing.Color.Blue" or "Color.Blue", to the <xref:System.Drawing.ColorConverter.ConvertFrom%2A> method. |
| 269 | +
|
270 | 270 | ]]></format>
|
271 | 271 | </remarks>
|
272 | 272 | <exception cref="T:System.ArgumentException">The conversion cannot be performed.</exception>
|
|
326 | 326 | <summary>Converts the specified object to another type.</summary>
|
327 | 327 | <returns>An <see cref="T:System.Object" /> representing the converted value.</returns>
|
328 | 328 | <remarks>
|
329 |
| - <format type="text/markdown"><![CDATA[ |
330 |
| - |
331 |
| -## Remarks |
332 |
| - The most common conversion is to or from a string. |
333 |
| - |
| 329 | + <format type="text/markdown"><![CDATA[ |
| 330 | +
|
| 331 | +## Remarks |
| 332 | + The most common conversion is to or from a string. |
| 333 | +
|
334 | 334 | ]]></format>
|
335 | 335 | </remarks>
|
336 | 336 | <exception cref="T:System.ArgumentNullException">
|
337 |
| - <paramref name="destinationtype" /> is <see langword="null" />.</exception> |
| 337 | + <paramref name="destinationType" /> is <see langword="null" />.</exception> |
338 | 338 | <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
|
339 | 339 | </Docs>
|
340 | 340 | </Member>
|
|
0 commit comments