|
27 | 27 |
|
28 | 28 | To draw an element, use the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.DrawBackground%2A> method. The <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> class also includes methods, such as <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetColor%2A> and <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetEnumValue%2A>, that provide information about how an element is defined by the current visual style.
|
29 | 29 |
|
30 |
| - The <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.%23ctor%2A> constructor and many of the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> methods throw exceptions unless visual styles are enabled in the operating system and visual styles are applied to the client area of application windows. To check for these conditions, use the `static`<xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsSupported%2A> property. |
| 30 | + The <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.%23ctor%2A> constructor and many of the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> methods throw exceptions unless visual styles are enabled in the operating system and visual styles are applied to the client area of application windows. To check for these conditions, use the `static` <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsSupported%2A> property. |
31 | 31 |
|
32 | 32 | The <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> class wraps the functionality of the visual styles (UxTheme) API from the Windows Shell portion of the Windows Platform SDK.
|
33 | 33 |
|
|
83 | 83 | ## Remarks
|
84 | 84 | This constructor uses the <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.ClassName%2A?displayProperty=nameWithType>, <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.Part%2A?displayProperty=nameWithType>, and <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.State%2A?displayProperty=nameWithType> properties of the `element` parameter to initialize the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Class%2A>, <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Part%2A>, and <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.State%2A> properties.
|
85 | 85 |
|
86 |
| - Before using this constructor, you should call the `static`<xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `element` parameter. |
| 86 | + Before using this constructor, you should call the `static` <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `element` parameter. |
87 | 87 |
|
88 | 88 | ## Examples
|
89 | 89 | The following code example demonstrates how to use the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.%23ctor%28System.Windows.Forms.VisualStyles.VisualStyleElement%29> constructor to create a <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer>. This code example is part of a larger code example provided for the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> class overview.
|
|
139 | 139 | ## Remarks
|
140 | 140 | This constructor uses the `className`, `part`, and `state` parameters to initialize the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Class%2A>, <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Part%2A>, and <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.State%2A> properties.
|
141 | 141 |
|
142 |
| - Before using this constructor, you should call the `static`<xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `className`, `part`, and `state` parameters. |
| 142 | + Before using this constructor, you should call the `static` <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `className`, `part`, and `state` parameters. |
143 | 143 |
|
144 | 144 | ]]></format>
|
145 | 145 | </remarks>
|
|
0 commit comments